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

enh enh at google.com
Wed May 1 12:33:44 PDT 2019


strace on GNU tar says they just pass `-d`, not even `-dc`...

On Wed, May 1, 2019 at 11:03 AM Rob Landley <rob at landley.net> wrote:
>
> 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