anjakefala commented on code in PR #39481:
URL: https://github.com/apache/arrow/pull/39481#discussion_r1445361512
##########
cpp/src/arrow/filesystem/localfs.cc:
##########
@@ -595,7 +595,7 @@ Status LocalFileSystem::Move(const std::string& src, const
std::string& dest) {
"' to '", dfn.ToString(), "'");
}
#else
- if (rename(sfn.ToNative().c_str(), dfn.ToNative().c_str()) == -1) {
+ if (rename(sfn.ToNative().c_str(), dfn.ToNative().c_str()) < 0) {
Review Comment:
Good suggestion! I changed it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]