umask pour backup
Probablement n'était-ce pas grave (le dossier est safe), mais on est jamais trop prudent
This commit is contained in:
parent
348873298e
commit
624722ad30
1 changed files with 1 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue