diff options
author | Sebastian Lackner | 2019-01-03 17:54:38 +0100 |
---|---|---|
committer | rfjakob | 2019-01-03 18:24:05 +0100 |
commit | 0414ef2572c3c07aa2a1b6dbb18a276a876c985a (patch) | |
tree | 8442b2ed47ecd833519620fb3ed94d3bb753c029 /internal/fusefrontend/ctlsock_interface.go | |
parent | c0640ff3ef0ef8bef1f80fa2f8971ea9fe5e7f15 (diff) |
fusefrontend: Use appropriate flags in decryptPathAt.
Diffstat (limited to 'internal/fusefrontend/ctlsock_interface.go')
-rw-r--r-- | internal/fusefrontend/ctlsock_interface.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/fusefrontend/ctlsock_interface.go b/internal/fusefrontend/ctlsock_interface.go index 15345f3..e96d08d 100644 --- a/internal/fusefrontend/ctlsock_interface.go +++ b/internal/fusefrontend/ctlsock_interface.go @@ -91,7 +91,7 @@ func (fs *FS) decryptPathAt(dirfd int, cipherPath string) (plainPath string, err break } // Descend into next directory - wd, err = syscallcompat.Openat(wd, part, syscall.O_NOFOLLOW, 0) + wd, err = syscallcompat.Openat(wd, part, syscall.O_NOFOLLOW|syscall.O_DIRECTORY|syscallcompat.O_PATH, 0) if err != nil { return "", err } |