Skip to content

Commit

Permalink
Merge pull request #1323 from rhatdan/main
Browse files Browse the repository at this point in the history
Don't fail on walking os of EOPNOTSUPP for Llistxatt
  • Loading branch information
vrothberg committed Sep 7, 2022
2 parents abfc271 + 03698d4 commit 5aff7f6
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 5aff7f6

Please sign in to comment.