aboutsummaryrefslogtreecommitdiff
path: root/pathfs_frontend/fs.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-12-06 15:00:54 +0100
committerJakob Unterwurzacher2015-12-06 15:00:54 +0100
commitedc289fb7578036ecc7571cb0207ceac17af9eec (patch)
treee4b6027e33d6386d8b8bedf52ee691658646cd70 /pathfs_frontend/fs.go
parent37c67393e64bd5ba26d92d15405a57418899a85d (diff)
Fix rename, was broken broken by DirIV introduction
As it was, CIPHERDIR was prepended twice, causing every rename to fail with ENOENT.
Diffstat (limited to 'pathfs_frontend/fs.go')
-rw-r--r--pathfs_frontend/fs.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pathfs_frontend/fs.go b/pathfs_frontend/fs.go
index 54525b9..40e0d1d 100644
--- a/pathfs_frontend/fs.go
+++ b/pathfs_frontend/fs.go
@@ -391,7 +391,8 @@ func (fs *FS) Rename(oldPath string, newPath string, context *fuse.Context) (cod
// That directory may still be in the DirIV cache, clear it.
fs.CryptFS.DirIVCacheEnc.Clear()
- return fs.FileSystem.Rename(cOldPath, cNewPath, context)
+ err = os.Rename(cOldPath, cNewPath)
+ return fuse.ToStatus(err)
}
func (fs *FS) Link(oldPath string, newPath string, context *fuse.Context) (code fuse.Status) {