From 2510afb631f41ab49c74edc7938330d0003e808b Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Thu, 21 Apr 2022 16:21:18 +0200 Subject: just-mr: correctly set times and permissions in CAS --- bin/just-mr.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin/just-mr.py') 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 -- cgit v1.2.3