Skip to content

Commit 57eafcb

Browse files
committed
Fix temporary file permissions
1 parent 5ec6801 commit 57eafcb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pipeline/compilers/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ def execute_command(self, command, cwd=None, stdout_captured=None):
148148
# Decide what to do with captured stdout.
149149
if stdout:
150150
if stdout_captured:
151-
shutil.move(stdout.name, os.path.join(cwd or os.curdir, stdout_captured))
151+
output_filename = os.path.join(cwd or os.curdir, stdout_captured)
152+
shutil.move(stdout.name, output_filename)
153+
os.chmod(output_filename, 0644)
152154
else:
153155
os.remove(stdout.name)

0 commit comments

Comments
 (0)