Fix rename, was broken broken by DirIV introduction
As it was, CIPHERDIR was prepended twice, causing every rename to fail with ENOENT.
This commit is contained in:
parent
37c67393e6
commit
edc289fb75
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user