Skip to content

Commit 4ad598b

Browse files
authored
Merge pull request jazzband#675 from taiste/bug/525-file-permissions-issue
Fix temporary file permissions
2 parents 5ec6801 + eb345dd commit 4ad598b

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, 420) # 644 in decimal
152154
else:
153155
os.remove(stdout.name)

0 commit comments

Comments
 (0)