summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2016-10-26 19:04:14 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2016-10-26 19:04:15 +0000
commit3a2faaa430c9c6a8f973ab140443f82b784a0c1d (patch)
tree79af8b4d01f0da49fc8b0f61b60d1d60f8440a58
parent622ad2fe818cb7a874a5add7197445eee9b9e92e (diff)
parent71f77265be706cd1d847fc10fcc02f71d454e0bb (diff)
Merge "Add mode bits to open() with O_CREAT."
-rw-r--r--profman/profman.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/profman/profman.cc b/profman/profman.cc
index b17816be0c..bfef834bd9 100644
--- a/profman/profman.cc
+++ b/profman/profman.cc
@@ -354,7 +354,7 @@ class ProfMan FINAL {
}
int GenerateTestProfile() {
- int profile_test_fd = open(test_profile_.c_str(), O_CREAT | O_TRUNC | O_WRONLY);
+ int profile_test_fd = open(test_profile_.c_str(), O_CREAT | O_TRUNC | O_WRONLY, 0644);
if (profile_test_fd < 0) {
std::cerr << "Cannot open " << test_profile_ << strerror(errno);
return -1;