aboutsummaryrefslogtreecommitdiff
path: root/internal/fusefrontend_reverse/rpath.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-07-27 20:31:22 +0200
committerJakob Unterwurzacher2017-07-27 20:31:22 +0200
commitd5133ca5ac4f241ff22ef145a3605a9fdb341bb6 (patch)
tree0ba68fc942de5459ff300f7d7e9f1229e8d5ed90 /internal/fusefrontend_reverse/rpath.go
parent496968e06c09f896ed04ad0939242e1ae75cde53 (diff)
fusefrontend_reverse: return ENOENT for undecryptable names
This was working until DecryptName switched to returning EBADMSG instead of EINVAL. Add a test to catch the regression next time.
Diffstat (limited to 'internal/fusefrontend_reverse/rpath.go')
-rw-r--r--internal/fusefrontend_reverse/rpath.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/fusefrontend_reverse/rpath.go b/internal/fusefrontend_reverse/rpath.go
index 58e8c91..6f6895a 100644
--- a/internal/fusefrontend_reverse/rpath.go
+++ b/internal/fusefrontend_reverse/rpath.go
@@ -46,7 +46,7 @@ func (rfs *ReverseFS) rDecryptName(cName string, dirIV []byte, pDir string) (pNa
// Stat attempts on the link target of encrypted symlinks.
// These are always valid base64 but the length is not a
// multiple of 16.
- if err == syscall.EINVAL {
+ if err == syscall.EBADMSG {
return "", syscall.ENOENT
}
return "", err