diff options
author | Jakob Unterwurzacher | 2020-07-11 20:27:47 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2020-07-11 20:27:47 +0200 |
commit | d539a4c21474a5d45bb3b8432d7b6f07664e61bd (patch) | |
tree | d91f56dca157ce66df7809f0542e03b928fedba5 /internal/fusefrontend/node_dir_ops.go | |
parent | b0342fae5d89301992d87f4305df71da502300ba (diff) |
v2api: fix RootNode cast
Diffstat (limited to 'internal/fusefrontend/node_dir_ops.go')
-rw-r--r-- | internal/fusefrontend/node_dir_ops.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/fusefrontend/node_dir_ops.go b/internal/fusefrontend/node_dir_ops.go index df8f060..5cf58ea 100644 --- a/internal/fusefrontend/node_dir_ops.go +++ b/internal/fusefrontend/node_dir_ops.go @@ -350,7 +350,7 @@ func (n *Node) Opendir(ctx context.Context) (errno syscall.Errno) { defer syscall.Close(dirfd) // Open backing directory - fd, err := syscallcompat.Openat(dirfd, cName, syscall.O_RDONLY|syscall.O_DIRECTORY, 0) + fd, err := syscallcompat.Openat(dirfd, cName, syscall.O_RDONLY|syscall.O_DIRECTORY|syscall.O_NOFOLLOW, 0) if err != nil { return fs.ToErrno(err) } |