mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Fix 'Unable to work from STDIO while reading password' when password is passed to command line parameters, courtesy of Emil Williams.
This commit is contained in:
parent
0c6f6b5723
commit
813f06becf
2
main.c
2
main.c
|
|
@ -712,7 +712,7 @@ recursion:
|
||||||
|
|
||||||
gettimeofday(&start_time, NULL);
|
gettimeofday(&start_time, NULL);
|
||||||
|
|
||||||
if (unlikely((STDIN || STDOUT) && ENCRYPT))
|
if (!control->passphrase && (unlikely((STDIN || STDOUT) && ENCRYPT)))
|
||||||
failure("Unable to work from STDIO while reading password\n");
|
failure("Unable to work from STDIO while reading password\n");
|
||||||
|
|
||||||
memcpy(&local_control, &base_control, sizeof(rzip_control));
|
memcpy(&local_control, &base_control, sizeof(rzip_control));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue