libarchive: open_zipped() does not need to check extensions for e.g. gzip 1_22_stable
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 10 Jan 2014 13:06:57 +0000 (14:06 +0100)
committerMike Frysinger <vapier@gentoo.org>
Tue, 21 Oct 2014 19:11:54 +0000 (15:11 -0400)
commit28dd64a0e1a9cffcde7799f2849b66c0e16bb9cc
tree740e74eed5bc839db4e984cfb104f327ebcddbc8
parent5698ff93233b47218a677fd7facd8cc90211d1a4
libarchive: open_zipped() does not need to check extensions for e.g. gzip

We only need to check for signature-less extensions,
currently only .lzma. The rest can be happily autodetected.

This fixes "zcat FILE_WITHOUT_GZ_EXT" case, among others.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
(cherry picked from commit 7c47b560a8fc97956dd8132bd7f1863d83c19866)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
archival/libarchive/open_transformer.c