Skip to content

Commit

Permalink
fix: handle unix.EACCES error also
Browse files Browse the repository at this point in the history
CI failures indicate that this could be another error code that needs
to be handled.

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
  • Loading branch information
rchincha committed Mar 29, 2024
1 parent 34a2970 commit e7a8957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oci/layer/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func isOverlayWhiteout(info os.FileInfo, fullPath string, fsEval fseval.FsEval)
attr, err := fsEval.Lgetxattr(fullPath, "user.overlay.opaque")
if err != nil {
v := errors.Cause(err)
if !errors.Is(err, os.ErrNotExist) && v != unix.EOPNOTSUPP && v != unix.ENODATA && v != unix.EPERM {
if !errors.Is(err, os.ErrNotExist) && v != unix.EOPNOTSUPP && v != unix.ENODATA && v != unix.EPERM && v != unix.EACCES {
return false, errors.Errorf("[internal error] unknown stat info type %T", info.Sys())
}

Expand Down

0 comments on commit e7a8957

Please sign in to comment.