Commit 624722ad authored by Daniel Stan's avatar Daniel Stan

umask pour backup

Probablement n'était-ce pas grave (le dossier est safe), mais on est
jamais trop prudent
parent 34887329
......@@ -155,6 +155,7 @@ def rmfile(filename):
def backup(corps, fname, old):
"""Backupe l'ancienne version du fichier"""
os.umask(0077)
back = open(getpath(fname, backup=True), 'a')
back.write(json.dumps(old))
back.write('\n')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment