aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-09-16 20:17:07 -0500
committerRob Landley <rob@landley.net>2019-09-16 20:17:07 -0500
commit1a7c18fb818c1661ec7f5f7013f17f75fefdb0e9 (patch)
treec49ca231bd7bca94775be19108adfe46253f938d /toys
parent766b0689d7028b5e1dc83e2c62f0da0aa7fa80d5 (diff)
downloadtoybox-1a7c18fb818c1661ec7f5f7013f17f75fefdb0e9.tar.gz
bug: tar tvf blah.tar.xz was running xz when it meant xzcat.
Diffstat (limited to 'toys')
-rw-r--r--toys/posix/tar.c2
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} :