forked from LibreSchool/server-config
Aggiustata a getvaultpass.py: utilizzo il file descriptor già aperto, anziché aprirne un secondo.
This commit is contained in:
parent
0d77b24de9
commit
8342344bf3
@ -16,8 +16,7 @@ encrypted = b64decode(base64enc.content)
|
||||
longpass = cipher.decrypt(encrypted)
|
||||
|
||||
fd, filename = mkstemp()
|
||||
with open(filename, 'w+') as f:
|
||||
f.write(longpass.strip('x'))
|
||||
os.write(fd, longpass.strip('x'))
|
||||
os.close(fd)
|
||||
|
||||
print(filename)
|
||||
|
Loading…
x
Reference in New Issue
Block a user