Skip to content

Commit

Permalink
canUseShifting can segfault
Browse files Browse the repository at this point in the history
Fixes: containers/podman#10535

Signed-off-by: Daniel J Walsh <[email protected]>
  • Loading branch information
rhatdan committed Jun 2, 2021
1 parent a52896d commit c72e943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store.go
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ func (s *store) ContainerStore() (ContainerStore, error) {
}

func (s *store) canUseShifting(uidmap, gidmap []idtools.IDMap) bool {
if !s.graphDriver.SupportsShifting() {
if s.graphDriver == nil || !s.graphDriver.SupportsShifting() {
return false
}
if uidmap != nil && !idtools.IsContiguous(uidmap) {
Expand Down

0 comments on commit c72e943

Please sign in to comment.