fusefrontend: Check the correct 'err' variable.

This commit is contained in:
Sebastian Lackner 2018-12-26 22:08:14 +01:00 committed by rfjakob
parent 2a010263f6
commit 5918884926
1 changed files with 1 additions and 1 deletions

View File

@ -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)