diff options
author | Daniel Erat <derat@google.com> | 2015-07-07 09:16:27 -0600 |
---|---|---|
committer | Daniel Erat <derat@google.com> | 2015-08-24 15:23:23 -0600 |
commit | 27bb2e0191b22cde0bb6a56f36abd28c08804b67 (patch) | |
tree | 62617df7b64a7b9a88ac1e7fd8f34f6b6fdc48ae /base | |
parent | 742125f404a0a2b549f0be7820c2b33be8712b6f (diff) | |
download | libchrome-27bb2e0191b22cde0bb6a56f36abd28c08804b67.tar.gz |
Make base::WriteFile use mode 0666 instead of 0640.
Temporarily revert base::WriteFile to the behavior in older
revision of libchrome until we sort out the expected file
permissions at all call sites of base::WriteFile in Chrome
OS code (crbug.com/412057).
This is benchan@chromium.org's
base-334380-revert-writefile-permissions.patch from Chrome
OS. The original commit was
https://chromium-review.googlesource.com/216584.
Bug: 22317122
Change-Id: Ia86ef66122b6cf148bad56d13ef82624e1db8a5b
Diffstat (limited to 'base')
-rw-r--r-- | base/files/file_util_posix.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/files/file_util_posix.cc b/base/files/file_util_posix.cc index 48c969d0e4..af0cde4af9 100644 --- a/base/files/file_util_posix.cc +++ b/base/files/file_util_posix.cc @@ -688,7 +688,7 @@ int ReadFile(const FilePath& filename, char* data, int max_size) { int WriteFile(const FilePath& filename, const char* data, int size) { ThreadRestrictions::AssertIOAllowed(); - int fd = HANDLE_EINTR(creat(filename.value().c_str(), 0640)); + int fd = HANDLE_EINTR(creat(filename.value().c_str(), 0666)); if (fd < 0) return -1; |