diff options
author | Rob Landley <rob@landley.net> | 2019-09-16 20:17:07 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-09-16 20:17:07 -0500 |
commit | 1a7c18fb818c1661ec7f5f7013f17f75fefdb0e9 (patch) | |
tree | c49ca231bd7bca94775be19108adfe46253f938d /toys/posix | |
parent | 766b0689d7028b5e1dc83e2c62f0da0aa7fa80d5 (diff) | |
download | toybox-1a7c18fb818c1661ec7f5f7013f17f75fefdb0e9.tar.gz |
bug: tar tvf blah.tar.xz was running xz when it meant xzcat.
Diffstat (limited to 'toys/posix')
-rw-r--r-- | toys/posix/tar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/tar.c b/toys/posix/tar.c index c4bdc4b6..d3680ad2 100644 --- a/toys/posix/tar.c +++ b/toys/posix/tar.c @@ -859,7 +859,7 @@ void tar_main(void) if (FLAG(j)||FLAG(z)||FLAG(J)) { int pipefd[2] = {hdr ? -1 : TT.fd, -1}, i, pid; struct string_list *zcat = find_in_path(getenv("PATH"), - FLAG(j) ? "bzcat" : FLAG(J) ? "xz" : "zcat"); + FLAG(j) ? "bzcat" : FLAG(J) ? "xzcat" : "zcat"); // Toybox provides more decompressors than compressors, so try them first xpopen_both(zcat ? (char *[]){zcat->str, 0} : |