diff options
| author | Jakob Unterwurzacher | 2016-09-25 17:01:04 +0200 | 
|---|---|---|
| committer | Jakob Unterwurzacher | 2016-09-25 17:01:39 +0200 | 
| commit | 32e55261ca7a972a2ea2651c142022947cbe043f (patch) | |
| tree | b0155596cd85eeb22d79f7abf9f7e20a053caa17 | |
| parent | ffdb7cd47af8488ff282dbcbefdf884b9aadadff (diff) | |
fusefrontend: handle Readlink directly
Calling into go-fuse's loopbackFileSystem does not add
any value here.
| -rw-r--r-- | internal/fusefrontend/fs.go | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/internal/fusefrontend/fs.go b/internal/fusefrontend/fs.go index a3db3dc..f68f0f9 100644 --- a/internal/fusefrontend/fs.go +++ b/internal/fusefrontend/fs.go @@ -253,13 +253,13 @@ func (fs *FS) StatFs(path string) *fuse.StatfsOut {  }  func (fs *FS) Readlink(path string, context *fuse.Context) (out string, status fuse.Status) { -	cPath, err := fs.encryptPath(path) +	cPath, err := fs.getBackingPath(path)  	if err != nil {  		return "", fuse.ToStatus(err)  	} -	cTarget, status := fs.FileSystem.Readlink(cPath, context) -	if status != fuse.OK { -		return "", status +	cTarget, err := os.Readlink(cPath) +	if err != nil { +		return "", fuse.ToStatus(err)  	}  	if fs.args.PlaintextNames {  		return cTarget, fuse.OK | 
