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

Rob Landley rob at landley.net
Wed May 1 11:04:05 PDT 2019


On 4/29/19 5:58 PM, enh via Toybox wrote:
> 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.

Hmmm... should decompression have -f too? (I can see tar | ssh tar" winding up
with a tty under plausible circumstances...)

(Which implies zcat should set -f...)

Rob



More information about the Toybox mailing list