diff options
author | Sebastian Lackner | 2018-12-26 22:08:14 +0100 |
---|---|---|
committer | rfjakob | 2018-12-27 15:11:23 +0100 |
commit | 5918884926bf7a4e77b922a2ce6f89e744935cb9 (patch) | |
tree | 14e6f9669b9bb461980172012e514c10c3e9fb78 /internal | |
parent | 2a010263f62c8ad82952a7c2c661baa9706c6155 (diff) |
fusefrontend: Check the correct 'err' variable.
Diffstat (limited to 'internal')
-rw-r--r-- | internal/fusefrontend/fs_dir.go | 2 |
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) |