From df78d7e0f209c7b759235f89451a7198a614f4fe Mon Sep 17 00:00:00 2001 From: kraai Date: Fri, 15 Sep 2000 21:18:43 +0000 Subject: Allow non-verbose listing to work. git-svn-id: svn://busybox.net/trunk/busybox@1060 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- tar.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'tar.c') diff --git a/tar.c b/tar.c index d31661184..de99656c6 100644 --- a/tar.c +++ b/tar.c @@ -611,12 +611,14 @@ static int readTarFile(const char* tarName, int extractFlag, int listFlag, fprintf(vbFd, "%s\n", header.name); } - if (verboseFlag == TRUE && listFlag == TRUE) { + if (listFlag == TRUE) { printf("%s", header.name); - if (header.type==LNKTYPE) /* If this is a link, say so */ - printf(" link to %s", header.linkname); - else if (header.type==SYMTYPE) - printf(" -> %s", header.linkname); + if (verboseFlag == TRUE) { + if (header.type==LNKTYPE) /* If this is a link, say so */ + printf(" link to %s", header.linkname); + else if (header.type==SYMTYPE) + printf(" -> %s", header.linkname); + } printf("\n"); } -- cgit v1.2.3-55-g6feb