aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib')
-rw-r--r--src/main/java/com/google/devtools/build/lib/skyframe/SkyframeActionExecutor.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeActionExecutor.java b/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeActionExecutor.java
index 92094b7d5d..2415474fb1 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeActionExecutor.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeActionExecutor.java
@@ -847,14 +847,11 @@ public final class SkyframeActionExecutor implements ActionExecutionContextFacto
Path path = output.getPath();
if (metadataHandler.isInjected(output)) {
// We trust the files created by the execution-engine to be non symlinks with expected
- // chmod() settings already applied. The follow stanza implies a total of 6 system calls,
- // since the UnixFileSystem implementation of setWritable() and setExecutable() both
- // do a stat() internally.
+ // chmod() settings already applied.
continue;
}
if (path.isFile(Symlinks.NOFOLLOW)) { // i.e. regular files only.
- path.setWritable(false);
- path.setExecutable(true);
+ path.chmod(0555); // Sets the file read-only and executable.
}
}
}