diff options
Diffstat (limited to 'base/file_util_linux.cc')
-rw-r--r-- | base/file_util_linux.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/base/file_util_linux.cc b/base/file_util_linux.cc index f776c91..1d13c89 100644 --- a/base/file_util_linux.cc +++ b/base/file_util_linux.cc @@ -15,8 +15,6 @@ namespace file_util { -const wchar_t kPathSeparator = L'/'; - bool GetTempDir(FilePath* path) { const char* tmp = getenv("TMPDIR"); if (tmp) @@ -30,7 +28,7 @@ bool CopyFile(const FilePath& from_path, const FilePath& to_path) { int infile = open(from_path.value().c_str(), O_RDONLY); if (infile < 0) return false; - + int outfile = creat(to_path.value().c_str(), 0666); if (outfile < 0) { close(infile); |