From e7a8957607a6abefa8e317435b3de87d67b8ad54 Mon Sep 17 00:00:00 2001 From: Ramkumar Chinchani Date: Fri, 29 Mar 2024 19:40:21 +0000 Subject: [PATCH] fix: handle unix.EACCES error also CI failures indicate that this could be another error code that needs to be handled. Signed-off-by: Ramkumar Chinchani --- oci/layer/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oci/layer/utils.go b/oci/layer/utils.go index dcbbcfed..8d8e1574 100644 --- a/oci/layer/utils.go +++ b/oci/layer/utils.go @@ -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()) }