Index: base/file_util_linux.cc |
diff --git a/base/file_util_linux.cc b/base/file_util_linux.cc |
index f776c917b74a51f0da876eb808e0ab8b2dd0e284..945200a81279b4616843b92b9590f41a49c2f2e0 100644 |
--- a/base/file_util_linux.cc |
+++ b/base/file_util_linux.cc |
@@ -26,6 +26,10 @@ bool GetTempDir(FilePath* path) { |
return true; |
} |
+FILE* OpenFile(const FilePath& filename, const char* mode) { |
+ return fopen(filename.value().c_str(), mode); |
+} |
+ |
bool CopyFile(const FilePath& from_path, const FilePath& to_path) { |
int infile = open(from_path.value().c_str(), O_RDONLY); |
if (infile < 0) |