diff options
author | Jakob Unterwurzacher | 2019-01-20 12:59:59 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2019-01-20 12:59:59 +0100 |
commit | 0805a63df1b5f915b228727f6074c2506922d0ad (patch) | |
tree | 5bf0b6c5db8e95db1505fae2a025d75f603ea896 /internal/fusefrontend_reverse/rfs.go | |
parent | 8c09df03aa5eeb581befb7bb77a0af44b39dfd37 (diff) |
syscallcompat: drop Faccessat AT_SYMLINK_NOFOLLOW helper
unix.Faccessat has added support for AT_SYMLINK_NOFOLLOW in July 2018,
https://github.com/golang/sys/commit/bd9dbc187b6e1dacfdd2722a87e83093c2d7bd6e#diff-341484dbbe3180cd7a31ef2ad2d679b6
which means we no longer need our own helper.
Closes https://github.com/rfjakob/gocryptfs/issues/347
Diffstat (limited to 'internal/fusefrontend_reverse/rfs.go')
-rw-r--r-- | internal/fusefrontend_reverse/rfs.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/fusefrontend_reverse/rfs.go b/internal/fusefrontend_reverse/rfs.go index 6ee10fc..28b20f8 100644 --- a/internal/fusefrontend_reverse/rfs.go +++ b/internal/fusefrontend_reverse/rfs.go @@ -255,7 +255,7 @@ func (rfs *ReverseFS) Access(relPath string, mode uint32, context *fuse.Context) if err != nil { return fuse.ToStatus(err) } - err = syscallcompat.Faccessat(dirfd, name, mode) + err = unix.Faccessat(dirfd, name, mode, unix.AT_SYMLINK_NOFOLLOW) syscall.Close(dirfd) return fuse.ToStatus(err) } |