diff --git a/main.c b/main.c index eb0985f..2dee67c 100644 --- a/main.c +++ b/main.c @@ -712,7 +712,7 @@ int main(int argc, char *argv[]) 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"); memcpy(&local_control, &base_control, sizeof(rzip_control));