修訂 | 2666cd54cd0f52831af43237b6b17d1d7fa1b1e7 (tree) |
---|---|
時間 | 2019-10-22 15:12:24 |
作者 | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
Merge remote-tracking branch 'cm/cm-14.1' into cm-14.1-x86
@@ -54,7 +54,7 @@ File* OS::CreateEmptyFileWriteOnly(const char* name) { | ||
54 | 54 | File* OS::OpenFileWithFlags(const char* name, int flags) { |
55 | 55 | CHECK(name != nullptr); |
56 | 56 | std::unique_ptr<File> file(new File); |
57 | - if (!file->Open(name, flags, 0666)) { | |
57 | + if (!file->Open(name, flags, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)) { | |
58 | 58 | return nullptr; |
59 | 59 | } |
60 | 60 | return file.release(); |