overlay: remove unreachable code
the removed code is not reachable since permsKnown must be true to be in this code branch. Closes: https://github.com/containers/storage/issues/1900 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
989e69d83a
commit
0c883a5eeb
|
|
@ -1539,11 +1539,7 @@ func (d *Driver) get(id string, disableShifting bool, options graphdriver.MountO
|
|||
for err == nil {
|
||||
absLowers = append(absLowers, filepath.Join(dir, nameWithSuffix("diff", diffN)))
|
||||
diffN++
|
||||
st, err = os.Stat(filepath.Join(dir, nameWithSuffix("diff", diffN)))
|
||||
if err == nil && !permsKnown {
|
||||
perms = os.FileMode(st.Mode())
|
||||
permsKnown = true
|
||||
}
|
||||
err = fileutils.Exists(filepath.Join(dir, nameWithSuffix("diff", diffN)))
|
||||
}
|
||||
|
||||
idmappedMountProcessPid := -1
|
||||
|
|
|
|||
Loading…
Reference in New Issue