commit | 2496f5d4d36254af2fb6b8bff213716734d9cf11 | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Sat Feb 04 00:39:44 2017 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Sat Feb 04 00:39:44 2017 +0000 |
tree | 3150c669e2d39bf05c237b8af08cb6c443383b6a | |
parent | eb21cdedc04bc7f4ca67062f9d8cb64606e83f98 [diff] | |
parent | afae4c833445e0b13389d457dc8dde069aff7c66 [diff] |
Merge "Add permission bits to open with O_CREAT."
diff --git a/storaged/tests/storaged_test.cpp b/storaged/tests/storaged_test.cpp index 5395b9a..9e03c50 100644 --- a/storaged/tests/storaged_test.cpp +++ b/storaged/tests/storaged_test.cpp
@@ -33,7 +33,7 @@ static void pause(uint32_t sec) { const char* path = "/cache/test"; - int fd = open(path, O_WRONLY | O_CREAT); + int fd = open(path, O_WRONLY | O_CREAT, 0600); ASSERT_LT(-1, fd); char buffer[2048]; memset(buffer, 1, sizeof(buffer));