aboutsummaryrefslogtreecommitdiff
path: root/internal/fusefrontend/fs_dir.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-10-01 21:28:54 +0200
committerJakob Unterwurzacher2019-01-01 16:24:09 +0100
commitc09bf1f2284706232642431c75fa1f3d8500a9d0 (patch)
tree80aa369bc7139cec50865a108d092e413243636d /internal/fusefrontend/fs_dir.go
parented6ed513d7f06178c0de02e8a372c33fe8f842f1 (diff)
fusefrontend: make DecryptPath() symlink-safe
DecryptPath is now symlink-safe through the use of *at() functions.
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 963a551..76dff8e 100644
--- a/internal/fusefrontend/fs_dir.go
+++ b/internal/fusefrontend/fs_dir.go
@@ -324,7 +324,7 @@ func (fs *FS) OpenDir(dirName string, context *fuse.Context) ([]fuse.DirEntry, f
isLong = nametransform.NameType(cName)
}
if isLong == nametransform.LongNameContent {
- cNameLong, err := nametransform.ReadLongName(filepath.Join(cDirAbsPath, cName))
+ cNameLong, err := nametransform.ReadLongNameAt(fd, cName)
if err != nil {
tlog.Warn.Printf("OpenDir %q: invalid entry %q: Could not read .name: %v",
cDirName, cName, err)