summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreeHugger Robot2017-02-03 18:39:44 -0600
committerAndroid (Google) Code Review2017-02-03 18:39:44 -0600
commit011f28a5ac86b00d271e293d0431d256549dc223 (patch)
tree3150c669e2d39bf05c237b8af08cb6c443383b6a /storaged
parentb6167a08d5735baaf9656884e938d4d82b18ad24 (diff)
parent151ea52cf68e4f9716c985b6ee0b2bf2f160f6ef (diff)
downloadplatform-system-core-011f28a5ac86b00d271e293d0431d256549dc223.tar.gz
platform-system-core-011f28a5ac86b00d271e293d0431d256549dc223.tar.xz
platform-system-core-011f28a5ac86b00d271e293d0431d256549dc223.zip
Merge "Add permission bits to open with O_CREAT."
Diffstat (limited to 'storaged')
-rw-r--r--storaged/tests/storaged_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/storaged/tests/storaged_test.cpp b/storaged/tests/storaged_test.cpp
index 5395b9a41..9e03c5018 100644
--- a/storaged/tests/storaged_test.cpp
+++ b/storaged/tests/storaged_test.cpp
@@ -33,7 +33,7 @@
33 33
34static void pause(uint32_t sec) { 34static void pause(uint32_t sec) {
35 const char* path = "/cache/test"; 35 const char* path = "/cache/test";
36 int fd = open(path, O_WRONLY | O_CREAT); 36 int fd = open(path, O_WRONLY | O_CREAT, 0600);
37 ASSERT_LT(-1, fd); 37 ASSERT_LT(-1, fd);
38 char buffer[2048]; 38 char buffer[2048];
39 memset(buffer, 1, sizeof(buffer)); 39 memset(buffer, 1, sizeof(buffer));