Skip to content

Commit

Permalink
Don't fail on walking os of EOPNOTSUPP for Llistxatt
Browse files Browse the repository at this point in the history
Fixes: #1321

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
  • Loading branch information
rhatdan committed Sep 6, 2022
1 parent abfc271 commit 03698d4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions drivers/overlay/check_116.go
@@ -1,14 +1,17 @@
// +build go1.16
//go:build linux
// +build linux

package overlay

import (
"errors"
"io/fs"
"path/filepath"
"strings"

"github.com/containers/storage/pkg/archive"
"github.com/containers/storage/pkg/system"
"golang.org/x/sys/unix"
)

func scanForMountProgramIndicators(home string) (detected bool, err error) {
Expand All @@ -26,7 +29,7 @@ func scanForMountProgramIndicators(home string) (detected bool, err error) {
}
if d.IsDir() {
xattrs, err := system.Llistxattr(path)
if err != nil {
if err != nil && !errors.Is(err, unix.EOPNOTSUPP) {
return err
}
for _, xattr := range xattrs {
Expand Down

0 comments on commit 03698d4

Please sign in to comment.