Aggiustata a getvaultpass.py: utilizzo il file descriptor già aperto, anziché aprirne un secondo.

This commit is contained in:
Emiliano Vavassori 2015-07-14 22:03:52 +02:00
parent 0d77b24de9
commit 8342344bf3
1 changed files with 1 additions and 2 deletions

View File

@ -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)