Merge "Fix incorrect use of TEMP_FAILURE_RETRY"

This commit is contained in:
Treehugger Robot 2020-06-19 18:27:22 +00:00 committed by Gerrit Code Review
commit 442727c6e8

View file

@ -110,7 +110,7 @@ bool fileSetContents(const string& path, const vector<uint8_t>& data) {
remaining -= numWritten;
}
if (TEMP_FAILURE_RETRY(fsync(fd) == -1)) {
if (TEMP_FAILURE_RETRY(fsync(fd))) {
PLOG(ERROR) << "Failed fsyncing temp file for '" << path << "'";
close(fd);
return false;