aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/cpp/util/file.h
diff options
context:
space:
mode:
authorGravatar lberki <lberki@google.com>2017-06-27 11:13:05 +0200
committerGravatar Marcel Hlopko <hlopko@google.com>2017-06-27 11:33:07 +0200
commit69e74cd463c29ce7f3cbc36f392633b2617b3f80 (patch)
treec626d5033a28c4ea8ce80b95688d280c11136f26 /src/main/cpp/util/file.h
parent24795d4fd5d68040c6b9f830b6cf6f8fe7ba6789 (diff)
Don't set the +x bit by default on WriteFile().
This change is a spiritual successor of https://bazel-review.googlesource.com/c/7410/ . That one had a merge conflict and it was small enough that a rewrite was easier than updating it. RELNOTES: None. PiperOrigin-RevId: 160251282
Diffstat (limited to 'src/main/cpp/util/file.h')
-rw-r--r--src/main/cpp/util/file.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/cpp/util/file.h b/src/main/cpp/util/file.h
index 2292ec075a..4bc165110e 100644
--- a/src/main/cpp/util/file.h
+++ b/src/main/cpp/util/file.h
@@ -61,7 +61,7 @@ bool ReadFrom(file_handle_type handle, void *data, size_t size);
// Writes `content` into file `filename`, and chmods it to `perm`.
// Returns false on failure.
bool WriteFile(const std::string &content, const std::string &filename,
- unsigned int perm = 0755);
+ unsigned int perm = 0644);
// Returns the part of the path before the final "/". If there is a single
// leading "/" in the path, the result will be the leading "/". If there is