diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2019-06-11 21:06:43 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2019-06-11 21:06:43 +0000 |
commit | c69fda3b92bfb926b16f73efa6cf80bc91ab5847 (patch) | |
tree | e887bb07c4d17f4b14c887f32345655ce019ee58 | |
parent | f51e6147e09580dbd1f1065d873fd906cf5a33ca (diff) | |
parent | 00b18558cadd30480d7df3d2994ef9e2b4c7d516 (diff) | |
download | android_art-c69fda3b92bfb926b16f73efa6cf80bc91ab5847.tar.gz android_art-c69fda3b92bfb926b16f73efa6cf80bc91ab5847.tar.bz2 android_art-c69fda3b92bfb926b16f73efa6cf80bc91ab5847.zip |
Merge cherrypicks of [7982564, 7982192, 7982565, 7981411, 7982522, 7982682, 7982193, 7982194, 7982523, 7982480, 7982623, 7981412, 7981413, 7982605, 7982606, 7982607, 7982608, 7981749, 7981750, 7981751, 7981752, 7981753, 7981754, 7982624, 7982394, 7982395, 7982625, 7982687, 7982566, 7982567, 7982568, 7982688, 7982689, 7982690, 7982195, 7982196, 7982611, 7982612, 7982396, 7982694, 7982695, 7982215] into pi-qpr3-release
Change-Id: I272be384b49731bf56a098f2ca5e8f2601bc1622
-rw-r--r-- | libartbase/base/os_linux.cc | 3 |
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; } |