diff options
| author | 2017-01-26 01:34:39 +0000 | |
|---|---|---|
| committer | 2017-01-26 01:34:39 +0000 | |
| commit | 2b0fedb71e48cb80cbf53ca62e5e2a5b4e223211 (patch) | |
| tree | 5b6346367ca684c22296a5ca19c0d882b9e87822 | |
| parent | bfee6aee59a9ddca6c27becf9dc3abad9f25c771 (diff) | |
| parent | f6b468db7b5944e1fb98272b83ca822ff26ee07d (diff) | |
Merge "Add mode to open call with O_CREAT" am: af78fe13a0
am: f6b468db7b
Change-Id: I6ec7cd3bfa79ac95a042e26455073cb3cbec60c3
| -rw-r--r-- | cmds/atrace/atrace.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/atrace/atrace.cpp b/cmds/atrace/atrace.cpp index ee2b2758fc..64f7b820fd 100644 --- a/cmds/atrace/atrace.cpp +++ b/cmds/atrace/atrace.cpp @@ -1243,7 +1243,7 @@ int main(int argc, char **argv) fflush(stdout); int outFd = STDOUT_FILENO; if (g_outputFile) { - outFd = open(g_outputFile, O_WRONLY | O_CREAT); + outFd = open(g_outputFile, O_WRONLY | O_CREAT, 0644); } if (outFd == -1) { printf("Failed to open '%s', err=%d", g_outputFile, errno); |