summaryrefslogtreecommitdiff
path: root/internal/fusefrontend/fs_dir.go
diff options
context:
space:
mode:
authorSebastian Lackner2019-01-03 17:53:46 +0100
committerrfjakob2019-01-03 18:24:05 +0100
commitc0640ff3ef0ef8bef1f80fa2f8971ea9fe5e7f15 (patch)
treec3c1e7ad062d1400613c8040d1ccdc833b5babd2 /internal/fusefrontend/fs_dir.go
parent078a431493aab05120790073290cacae4c17ca20 (diff)
fusefrontend: Open directory with syscall.O_DIRECTORY in OpenDir.
Diffstat (limited to 'internal/fusefrontend/fs_dir.go')
-rw-r--r--internal/fusefrontend/fs_dir.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/fusefrontend/fs_dir.go b/internal/fusefrontend/fs_dir.go
index 71f86fa..728f7c5 100644
--- a/internal/fusefrontend/fs_dir.go
+++ b/internal/fusefrontend/fs_dir.go
@@ -269,7 +269,7 @@ func (fs *FS) OpenDir(dirName string, context *fuse.Context) ([]fuse.DirEntry, f
// Read ciphertext directory
var cipherEntries []fuse.DirEntry
var status fuse.Status
- fd, err := syscallcompat.Openat(parentDirFd, cDirName, syscall.O_RDONLY|syscall.O_NOFOLLOW, 0)
+ fd, err := syscallcompat.Openat(parentDirFd, cDirName, syscall.O_RDONLY|syscall.O_DIRECTORY|syscall.O_NOFOLLOW, 0)
if err != nil {
return nil, fuse.ToStatus(err)
}