From 701da16aaf5d1570684b33737fa69308373654a1 Mon Sep 17 00:00:00 2001 From: "max.mehl" Date: Thu, 23 Dec 2021 14:57:52 +0100 Subject: [PATCH] make sure .filter are 0600 --- autoreply_editor/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoreply_editor/main.py b/autoreply_editor/main.py index baeec3c..0cf6abb 100644 --- a/autoreply_editor/main.py +++ b/autoreply_editor/main.py @@ -103,6 +103,9 @@ def get_filterfile(user): with open(filepath, "w", encoding="utf-8") as filterfile: filterfile.write(filterconfig) + # Change permissions to 0600 + os.chmod(filepath, 0o600) + return filepath