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

View File

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