diff options
| author | 2016-10-26 19:04:14 +0000 | |
|---|---|---|
| committer | 2016-10-26 19:04:15 +0000 | |
| commit | 3a2faaa430c9c6a8f973ab140443f82b784a0c1d (patch) | |
| tree | 79af8b4d01f0da49fc8b0f61b60d1d60f8440a58 | |
| parent | 622ad2fe818cb7a874a5add7197445eee9b9e92e (diff) | |
| parent | 71f77265be706cd1d847fc10fcc02f71d454e0bb (diff) | |
Merge "Add mode bits to open() with O_CREAT."
| -rw-r--r-- | profman/profman.cc | 2 |
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; |