From 402d2892454698f8f9f4d6a7fe1e9f96c1f6b46f Mon Sep 17 00:00:00 2001 From: peppelinux Date: Mon, 8 Jul 2019 11:26:22 +0200 Subject: [PATCH] metadata files readable by all --- src/pyff/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pyff/utils.py b/src/pyff/utils.py index 783d15ac..ba76bb69 100644 --- a/src/pyff/utils.py +++ b/src/pyff/utils.py @@ -272,6 +272,8 @@ def safe_write(fn, data): tmpn = tmp.name if os.path.exists(tmpn) and os.stat(tmpn).st_size > 0: os.rename(tmpn, fn) + # made these file readable by all + os.chmod(fn, 0o644) return True except Exception as ex: log.debug(traceback.format_exc())