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

Although it should not happen in most cases.
master
Anis Elleuch 5 years ago committed by GitHub
parent b2a8cb4aba
commit c434dff0a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      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)

Loading…
Cancel
Save