1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-08-18 04:10:10 +02:00

Octal numbers 0600 to 0o600

This commit is contained in:
NeroBurner 2015-09-17 13:29:06 +02:00 committed by Daniel Martí
parent 5ca182a20d
commit 0e0767492e

View File

@ -295,7 +295,7 @@ def write_password_file(pwtype, password=None):
command line argments
'''
filename = '.fdroid.' + pwtype + '.txt'
fd = os.open(filename, os.O_CREAT | os.O_TRUNC | os.O_WRONLY, 0600)
fd = os.open(filename, os.O_CREAT | os.O_TRUNC | os.O_WRONLY, 0o600)
if password is None:
os.write(fd, config[pwtype])
else: