From 63fc40ea93b9c5f29f8fe485fbb2e21a07d06a78 Mon Sep 17 00:00:00 2001 From: ckolivas Date: Fri, 13 Feb 2026 11:23:39 +1100 Subject: [PATCH] Allow encrypted decompression with STDIO when a passphrase is given. --- lrzip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lrzip.c b/lrzip.c index 16e7948..3f0b290 100644 --- a/lrzip.c +++ b/lrzip.c @@ -867,7 +867,7 @@ bool decompress_file(rzip_control *control) else if (STDIN) { fd_in = open_tmpinfile(control); read_tmpinmagic(control); - if (ENCRYPT) + if (ENCRYPT && !control->passphrase) failure_return(("Cannot decompress encrypted file from STDIN\n"), false); expected_size = control->st_size; if (unlikely(!open_tmpinbuf(control)))