Commit 20908d5d authored by gejun's avatar gejun

Make files created by base::WriteFile readable by others

parent 90034239
......@@ -698,7 +698,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(), 0644));
if (fd < 0)
return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment