diff --git a/identity/Util.cpp b/identity/Util.cpp index a962dc32..cd290178 100644 --- a/identity/Util.cpp +++ b/identity/Util.cpp @@ -110,7 +110,7 @@ bool fileSetContents(const string& path, const vector& 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;