diff options
author | 2017-06-27 11:13:05 +0200 | |
---|---|---|
committer | 2017-06-27 11:33:07 +0200 | |
commit | 69e74cd463c29ce7f3cbc36f392633b2617b3f80 (patch) | |
tree | c626d5033a28c4ea8ce80b95688d280c11136f26 /src/main/cpp/util/file.h | |
parent | 24795d4fd5d68040c6b9f830b6cf6f8fe7ba6789 (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.h | 2 |
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 |