libarchive: fix xmalloc_open_zipped_read_close() on NOMMU
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 20 Jun 2016 09:06:42 +0000 (11:06 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 20 Jun 2016 09:06:42 +0000 (11:06 +0200)
commit984b0a613aaf1cdf48c2e2af08c8466a7bad8307
tree57b512d3843221b92da936b46abd238d1a036a94
parentecf25cb5bce27ca5820e2895d8458f38c406d105
libarchive: fix xmalloc_open_zipped_read_close() on NOMMU

The somewhat new "unpack in memory" code was broken
for xmalloc_open_zipped_read_close() on NOMMU: we seek back
over signature, but then expect it to be already consumed.
Stop seeking back in this case.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/bbunzip.c
archival/libarchive/decompress_gunzip.c
archival/libarchive/decompress_unxz.c
archival/libarchive/open_transformer.c
include/bb_archive.h