From a24342f656f6acd544ec07dada576d57a716b34d Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Tue, 12 Dec 2017 14:38:00 +0100 Subject: fusefrontend: Handle PlaintextNames mode in Link In PlaintextNames mode the "gocryptfs.longname." prefix does not have any special meaning. https://github.com/rfjakob/gocryptfs/issues/174 --- internal/fusefrontend/fs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/fusefrontend') diff --git a/internal/fusefrontend/fs.go b/internal/fusefrontend/fs.go index cc055c7..8c9e5e4 100644 --- a/internal/fusefrontend/fs.go +++ b/internal/fusefrontend/fs.go @@ -550,7 +550,7 @@ func (fs *FS) Link(oldPath string, newPath string, context *fuse.Context) (code } // Handle long file name cNewName := filepath.Base(cNewPath) - if nametransform.IsLongContent(cNewName) { + if !fs.args.PlaintextNames && nametransform.IsLongContent(cNewName) { dirfd, err := os.Open(filepath.Dir(cNewPath)) if err != nil { return fuse.ToStatus(err) -- cgit v1.2.3