From 2286372603f506cf719654a9901de0749c544b12 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 11 Nov 2018 17:43:48 +0100 Subject: fusefrontend: make GetXAttr() symlink-safe on Linux Uses the /proc/self/fd trick, which does not work on Darwin. --- internal/fusefrontend/names.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal/fusefrontend/names.go') 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 { -- cgit v1.2.3