Skip to content

Commit

Permalink
Merge cherrypicks of [7995446, 7995447, 7996042, 7996138, 7995448, 79…
Browse files Browse the repository at this point in the history
…95449, 7995789, 7995790, 7995450, 7996029, 7996030, 7996139, 7996140, 7996141, 7996142, 7996143, 7996144, 7995544, 7995545, 7995546, 7995547, 7995548, 7995549, 7995550, 7996145, 7996146, 7996032, 7996147, 7996148, 7996149, 7996150, 7994747, 7994748, 7995451, 7994749, 7994750, 7995966, 7995967, 7994751, 7996151, 7996152, 7996153] into pi-qpr3-b-release

Change-Id: Icecd6e7524a37b05102b0294c3671596849f8b2a
  • Loading branch information
android-build-team Robot committed Jun 12, 2019
2 parents f51e614 + 82a88f4 commit 2402bec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libartbase/base/os_linux.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ File* OS::OpenFileWithFlags(const char* name, int flags, bool auto_flush) {
CHECK(name != nullptr);
bool read_only = ((flags & O_ACCMODE) == O_RDONLY);
bool check_usage = !read_only && auto_flush;
std::unique_ptr<File> file(new File(name, flags, 0666, check_usage));
std::unique_ptr<File> file(
new File(name, flags, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH, check_usage));
if (!file->IsOpened()) {
return nullptr;
}
Expand Down

0 comments on commit 2402bec

Please sign in to comment.