aboutsummaryrefslogtreecommitdiff
path: root/internal/fusefrontend
diff options
context:
space:
mode:
authorSebastian Lackner2019-01-03 17:54:38 +0100
committerrfjakob2019-01-03 18:24:05 +0100
commit0414ef2572c3c07aa2a1b6dbb18a276a876c985a (patch)
tree8442b2ed47ecd833519620fb3ed94d3bb753c029 /internal/fusefrontend
parentc0640ff3ef0ef8bef1f80fa2f8971ea9fe5e7f15 (diff)
fusefrontend: Use appropriate flags in decryptPathAt.
Diffstat (limited to 'internal/fusefrontend')
-rw-r--r--internal/fusefrontend/ctlsock_interface.go2
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
}