From 97e595dc251746978851796c2a71b60b808df644 Mon Sep 17 00:00:00 2001 From: dahlo Date: Fri, 3 May 2024 15:03:20 +0200 Subject: [PATCH] Set file permissions of ownership file to not allow everyone to read it. --- darsync.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/darsync.py b/darsync.py index 850baad..d0d1fb2 100755 --- a/darsync.py +++ b/darsync.py @@ -387,6 +387,9 @@ def check_file_tree(args): + # set file permissions for the ownership file + os.chmod(f"{local_dir}/{prefix_basename}.ownership.gz", 0o650) + # Sort files by size uncompressed_files.sort(key=lambda x: x[1], reverse=True)