diff options
author | Jakob Unterwurzacher | 2018-11-11 17:43:48 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2019-01-01 16:24:25 +0100 |
commit | 2286372603f506cf719654a9901de0749c544b12 (patch) | |
tree | 3281d54570b9a06e5be756a57d049900848db182 /internal/fusefrontend/names.go | |
parent | b97d7d1d33d1274c6872d899692a56bd4070a6d9 (diff) |
fusefrontend: make GetXAttr() symlink-safe on Linux
Uses the /proc/self/fd trick, which does not work
on Darwin.
Diffstat (limited to 'internal/fusefrontend/names.go')
-rw-r--r-- | internal/fusefrontend/names.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/fusefrontend/names.go b/internal/fusefrontend/names.go index 6997177..5d6951c 100644 --- a/internal/fusefrontend/names.go +++ b/internal/fusefrontend/names.go @@ -35,6 +35,7 @@ func (fs *FS) isFiltered(path string) bool { // from the relative plaintext path "relPath" // // TODO: this function is NOT symlink-safe. +// TODO: Move to xattr_darwin.go. func (fs *FS) getBackingPath(relPath string) (string, error) { cPath, err := fs.encryptPath(relPath) if err != nil { |