From c434dff0a401c64613c2241f5116419bd2641840 Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Sat, 11 Apr 2020 19:15:30 +0100 Subject: [PATCH] posix: Add missing error return in RenameFile() (#9319) Although it should not happen in most cases. --- cmd/posix.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/posix.go b/cmd/posix.go index e6a432ff4..4df2bffdf 100644 --- a/cmd/posix.go +++ b/cmd/posix.go @@ -1608,6 +1608,7 @@ func (s *posix) RenameFile(srcVolume, srcPath, dstVolume, dstPath string) (err e } else if isSysErrIO(err) { return errFaultyDisk } + return err } srcIsDir := HasSuffix(srcPath, SlashSeparator)