Loading base/file.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -51,7 +51,7 @@ bool ReadFileToString(const std::string& path, std::string* content) { return false; } bool result = ReadFdToString(fd, content); TEMP_FAILURE_RETRY(close(fd)); close(fd); return result; } Loading Loading @@ -102,7 +102,7 @@ bool WriteStringToFile(const std::string& content, const std::string& path, ALOGE("android::WriteStringToFile write failed: %s", strerror(errno)); return CleanUpAfterFailedWrite(path); } TEMP_FAILURE_RETRY(close(fd)); close(fd); return true; } #endif Loading @@ -116,7 +116,7 @@ bool WriteStringToFile(const std::string& content, const std::string& path) { } bool result = WriteStringToFd(content, fd); TEMP_FAILURE_RETRY(close(fd)); close(fd); return result || CleanUpAfterFailedWrite(path); } Loading Loading
base/file.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -51,7 +51,7 @@ bool ReadFileToString(const std::string& path, std::string* content) { return false; } bool result = ReadFdToString(fd, content); TEMP_FAILURE_RETRY(close(fd)); close(fd); return result; } Loading Loading @@ -102,7 +102,7 @@ bool WriteStringToFile(const std::string& content, const std::string& path, ALOGE("android::WriteStringToFile write failed: %s", strerror(errno)); return CleanUpAfterFailedWrite(path); } TEMP_FAILURE_RETRY(close(fd)); close(fd); return true; } #endif Loading @@ -116,7 +116,7 @@ bool WriteStringToFile(const std::string& content, const std::string& path) { } bool result = WriteStringToFd(content, fd); TEMP_FAILURE_RETRY(close(fd)); close(fd); return result || CleanUpAfterFailedWrite(path); } Loading