Skip to content

Commit 1371c22

Browse files
committed
unpackarchive: suppress gzip errors for raw deflate
1 parent 9c4b9c6 commit 1371c22

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

unpackarchive

+3
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,9 @@ sub handle_decompression {
539539
my $pid2 = open(G, '|-');
540540
die("fork: $!\n") unless defined $pid2;
541541
if (!$pid2) {
542+
# suppress errors if we use gzip to decode raw deflate data,
543+
# as we do not have the gzip trailer in this case
544+
open(STDERR, '>', '/dev/null') if $decomp[0] eq 'gzip' && length($first16bytes) > 16;
542545
exec(@decomp);
543546
die("$decomp[0]: $!\n");
544547
}

0 commit comments

Comments
 (0)