posix: Add missing error return in RenameFile() (#9319)

Although it should not happen in most cases.
This commit is contained in:
Anis Elleuch 2020-04-11 19:15:30 +01:00 committed by GitHub
parent b2a8cb4aba
commit c434dff0a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1608,6 +1608,7 @@ func (s *posix) RenameFile(srcVolume, srcPath, dstVolume, dstPath string) (err e
} else if isSysErrIO(err) { } else if isSysErrIO(err) {
return errFaultyDisk return errFaultyDisk
} }
return err
} }
srcIsDir := HasSuffix(srcPath, SlashSeparator) srcIsDir := HasSuffix(srcPath, SlashSeparator)