summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2019-08-13 16:34:25 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-08-13 16:34:25 +0000
commitf276dfb81cea65bdfece64e3509d4f4d7851ab9a (patch)
treee887bb07c4d17f4b14c887f32345655ce019ee58
parent242cf1b7d4ef0608fc1c2e3f29b1757851205dfe (diff)
parent2402bec9f1b7f4a6e4b3e4de1a6d7cf68efbc216 (diff)
downloadart-pie-platform-release.tar.gz
Snap for 5674421 from 2402bec9f1b7f4a6e4b3e4de1a6d7cf68efbc216 to pi-platform-releasepie-platform-release
Change-Id: I134287fdd476d0fd7b179fb2b3111edd45d0b812
-rw-r--r--libartbase/base/os_linux.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libartbase/base/os_linux.cc b/libartbase/base/os_linux.cc
index cb228bd853..c972f8f95c 100644
--- a/libartbase/base/os_linux.cc
+++ b/libartbase/base/os_linux.cc
@@ -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;
}