Changed flush() method to child fd

This commit is contained in:
Anton Hvornum 2022-02-09 15:42:34 +01:00
parent 1319801564
commit 218f54123e
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ class luks2:
while cryptworker.is_alive():
with open('debug_outer.txt', 'a') as silent_output:
found = bytes(f'Enter passphrase for {partition.path}', 'UTF-8') in cryptworker
silent_output.write(f"Found string in worker: {found} / {pw_given}")
silent_output.write(f"Found string in worker: {found} / {pw_given}\r\n", line_ending=False)
if found and pw_given is False:
cryptworker.write(password)
pw_given = True