From 7a51d286f29b5a6ec69e07f58afb9e2fc4add0b0 Mon Sep 17 00:00:00 2001 From: Martin Sekera Date: Sun, 30 May 2021 23:46:13 +0200 Subject: [PATCH] fix a stupid mistake from the previous commit --- btv | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/btv b/btv index c84665e..1de3c82 100755 --- a/btv +++ b/btv @@ -249,7 +249,7 @@ def serialize(snap, outdir, key, snap_from=None): ## add a self-check executable with open(os.path.join(directory, "check-integrity.sh"), "w") as f: f.write("#! /bin/sh\n\nsha512sum --check manifest.sha512\n") - os.chmod(f.name, 0o555) + os.chmod(f.name, 0o500) ## fix permissions and ownership of created objects outdir_stat = os.stat(outdir) @@ -260,7 +260,9 @@ def serialize(snap, outdir, key, snap_from=None): os.chown(path, outdir_stat.st_uid, outdir_stat.st_gid) if path.endswith(".aes") or path.endswith(".sha512"): - os.chmod(path, 0o100) + os.chmod(path, 0o400) + + return 0