aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/cpp/blaze.cc
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/blaze.cc
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/blaze.cc')
-rw-r--r--src/main/cpp/blaze.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/cpp/blaze.cc b/src/main/cpp/blaze.cc
index 38a92d9a9e..310ce2187a 100644
--- a/src/main/cpp/blaze.cc
+++ b/src/main/cpp/blaze.cc
@@ -808,7 +808,7 @@ class ExtractBlazeZipProcessor : public devtools_ijar::ZipExtractorProcessor {
path.c_str());
}
- if (!blaze_util::WriteFile(data, size, path)) {
+ if (!blaze_util::WriteFile(data, size, path, 0755)) {
die(blaze_exit_code::LOCAL_ENVIRONMENTAL_ERROR,
"\nFailed to write zipped file \"%s\": %s", path.c_str(),
blaze_util::GetLastErrorString().c_str());