mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-11 23:23:27 +02:00
Octal numbers 0600 to 0o600
This commit is contained in:
parent
5ca182a20d
commit
0e0767492e
@ -295,7 +295,7 @@ def write_password_file(pwtype, password=None):
|
|||||||
command line argments
|
command line argments
|
||||||
'''
|
'''
|
||||||
filename = '.fdroid.' + pwtype + '.txt'
|
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:
|
if password is None:
|
||||||
os.write(fd, config[pwtype])
|
os.write(fd, config[pwtype])
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user