From 5918884926bf7a4e77b922a2ce6f89e744935cb9 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Wed, 26 Dec 2018 22:08:14 +0100 Subject: fusefrontend: Check the correct 'err' variable. --- internal/fusefrontend/fs_dir.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal') 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) -- cgit v1.2.3