From 2193f4fcd4abb1f2debf11426e15d4d71bd295eb Mon Sep 17 00:00:00 2001 From: Vincent Zeng Date: Thu, 22 Mar 2018 23:53:24 -0400 Subject: [PATCH] making backups more private --- ttbp/ttbp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ttbp/ttbp.py b/ttbp/ttbp.py index a091b85..e669b76 100644 --- a/ttbp/ttbp.py +++ b/ttbp/ttbp.py @@ -816,6 +816,7 @@ please enter""") subprocess.call(["chmod", "600", backupfile]) if not os.path.exists(config.BACKUPS): subprocess.call(["mkdir", config.BACKUPS]) + subprocess.call(["chmod", "700", config.BACKUPS]) subprocess.call(["cp", backupfile, config.BACKUPS]) print("\nbackup saved! i also put a copy at {backup_dir} for you.".format(backup_dir = config.BACKUPS)) else: