Merge "Add permission bits to open with O_CREAT."

This commit is contained in:
TreeHugger Robot 2017-02-04 00:39:44 +00:00 committed by Android (Google) Code Review
commit 011f28a5ac
1 changed files with 1 additions and 1 deletions

View File

@ -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));