From 1a7c18fb818c1661ec7f5f7013f17f75fefdb0e9 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 16 Sep 2019 20:17:07 -0500 Subject: bug: tar tvf blah.tar.xz was running xz when it meant xzcat. --- toys/posix/tar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/posix') 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} : -- cgit v1.2.3