libbb: use external gzip command as I/O layer
authorJo-Philipp Wich <jo@mein.io>
Fri, 10 Feb 2017 09:19:14 +0000 (10:19 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 10 Feb 2017 09:19:14 +0000 (10:19 +0100)
commitdd4c78aa88efd3b9cf516030937c684814df7962
tree0a1d91abfdb26e38c57fc8d0364cfbdc4cb9b563
parentebecbc302f97b04c2b5bfedd00030d1cfd700607
libbb: use external gzip command as I/O layer

Remove the builtin inflate code and rely on the external gzip command instead
to inflate data streams.

This change is needed to properly support vfork(). We cannot use the builtin
code because it uses a single global state which will get clobbered when
recursively inflating nested archives.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libbb/Makefile.am
libbb/gzip.c [new file with mode: 0644]
libbb/gzip.h [new file with mode: 0644]
libbb/unarchive.c
src/Makefile.am
tests/Makefile.am