fusefrontend: fix fd leak in Access()
Thanks @slackner! Fixes https://github.com/rfjakob/gocryptfs/issues/306
This commit is contained in:
parent
887d5aa8e7
commit
77c3df48ef
@ -630,6 +630,7 @@ func (fs *FS) Access(relPath string, mode uint32, context *fuse.Context) (code f
|
||||
return fuse.ToStatus(err)
|
||||
}
|
||||
err = unix.Faccessat(dirfd, cName, mode, unix.AT_SYMLINK_NOFOLLOW)
|
||||
syscall.Close(dirfd)
|
||||
return fuse.ToStatus(err)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user