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)
|
longpass = cipher.decrypt(encrypted)
|
||||||
|
|
||||||
fd, filename = mkstemp()
|
fd, filename = mkstemp()
|
||||||
with open(filename, 'w+') as f:
|
os.write(fd, longpass.strip('x'))
|
||||||
f.write(longpass.strip('x'))
|
|
||||||
os.close(fd)
|
os.close(fd)
|
||||||
|
|
||||||
print(filename)
|
print(filename)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user