mirror of
https://github.com/minio/minio.git
synced 2026-11-17 06:55:18 +00:00
posix: Add missing error return in RenameFile() (#9319)
Although it should not happen in most cases.
This commit is contained in:
1 parent
b2a8cb4aba
commit
c434dff0a4
1 file changed
+1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user