Skip to content
Snippets Groups Projects
Commit 624722ad authored by Daniel STAN's avatar Daniel STAN
Browse files

umask pour backup

Probablement n'était-ce pas grave (le dossier est safe), mais on est
jamais trop prudent
parent 34887329
No related branches found
No related tags found
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment