Skip to content

Commit 35c7612

Browse files
authored
Merge pull request #824 from Luap99/fix-fgetxattr
storage: fix broken fgetxattr call
2 parents 5d3b0fe + 83a097b commit 35c7612

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

storage/drivers/overlay/overlay.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2058,7 +2058,7 @@ func (g *overlayFileGetter) Get(path string) (io.ReadCloser, error) {
20582058
for _, d := range g.diffDirs {
20592059
if f, found := g.composefsMounts[d]; found {
20602060
cfd, err := unix.Openat2(int(f.Fd()), path, &unix.OpenHow{
2061-
Flags: unix.O_CLOEXEC | unix.O_PATH,
2061+
Flags: unix.O_RDONLY | unix.O_CLOEXEC,
20622062
Resolve: unix.RESOLVE_NO_SYMLINKS | unix.RESOLVE_BENEATH,
20632063
})
20642064
if err != nil {

0 commit comments

Comments
 (0)