summaryrefslogtreecommitdiff
path: root/bin/just-mr.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/just-mr.py')
-rwxr-xr-xbin/just-mr.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/just-mr.py b/bin/just-mr.py
index 7b68eb19..1a1c868c 100755
--- a/bin/just-mr.py
+++ b/bin/just-mr.py
@@ -200,7 +200,9 @@ def add_to_cas(data):
with open(tempname, "wb") as f:
f.write(data)
f.flush()
+ os.chmod(f.fileno(), 0o444)
os.fsync(f.fileno())
+ os.utime(tempname, (0,0))
os.rename(tempname, target)
return target