[Toybox] [PATCH] tar: use same tools for decompression as for compression.

enh enh at google.com
Mon Apr 29 15:58:46 PDT 2019


This is what GNU tar does, so Android's build system jail allows
bzip2, gzip, and xz, but not bzcat, zcat, and xzcat.

Why the function? Because auto-detection works by setting toyflags, so
we need to make sure we test the flags late, so it's either two copies
of this or a function.
---
 toys/posix/tar.c | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-tar-use-same-tools-for-decompression-as-for-compress.patch
Type: text/x-patch
Size: 2218 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190429/5faffbc7/attachment-0002.bin>


More information about the Toybox mailing list