Update layers.go

Co-authored-by: Sascha Grunert <sgrunert@suse.com>
This commit is contained in:
Daniel J Walsh 2020-10-15 07:27:40 -04:00 committed by GitHub
parent 690c8cb767
commit 326bfa1537
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -907,7 +907,7 @@ func (r *layerStore) ParentOwners(id string) (uids, gids []int, err error) {
for dir := filepath.Dir(layer.MountPoint); dir != "" && dir != string(os.PathSeparator); dir = filepath.Dir(dir) {
st, err := system.Stat(dir)
if err != nil {
return nil, nil, err
return nil, nil, errors.Wrap(err, "read directory ownership")
}
lst, err := system.Lstat(dir)
if err != nil {