summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorSebastian Lackner2018-12-26 22:08:14 +0100
committerrfjakob2018-12-27 15:11:23 +0100
commit5918884926bf7a4e77b922a2ce6f89e744935cb9 (patch)
tree14e6f9669b9bb461980172012e514c10c3e9fb78 /internal
parent2a010263f62c8ad82952a7c2c661baa9706c6155 (diff)
fusefrontend: Check the correct 'err' variable.
Diffstat (limited to 'internal')
-rw-r--r--internal/fusefrontend/fs_dir.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/fusefrontend/fs_dir.go b/internal/fusefrontend/fs_dir.go
index df22100..caf05e7 100644
--- a/internal/fusefrontend/fs_dir.go
+++ b/internal/fusefrontend/fs_dir.go
@@ -236,7 +236,7 @@ retry:
// meantime, undo the rename
err2 := syscallcompat.Renameat(parentDirFd, tmpName,
dirfd, nametransform.DirIVFilename)
- if err != nil {
+ if err2 != nil {
tlog.Warn.Printf("Rmdir: Rename rollback failed: %v", err2)
}
return fuse.ToStatus(err)