aboutsummaryrefslogtreecommitdiff
path: root/tar.c
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-09-15 21:18:43 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-09-15 21:18:43 +0000
commitdf78d7e0f209c7b759235f89451a7198a614f4fe (patch)
tree1c295d257ec832fa8894e99626822798948ee06c /tar.c
parent7ae18a0b625edee9b0e03487d7e093b647afc9a4 (diff)
downloadbusybox-w32-df78d7e0f209c7b759235f89451a7198a614f4fe.tar.gz
busybox-w32-df78d7e0f209c7b759235f89451a7198a614f4fe.tar.bz2
busybox-w32-df78d7e0f209c7b759235f89451a7198a614f4fe.zip
Allow non-verbose listing to work.
git-svn-id: svn://busybox.net/trunk/busybox@1060 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'tar.c')
-rw-r--r--tar.c12
1 files changed, 7 insertions, 5 deletions
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,
611 fprintf(vbFd, "%s\n", header.name); 611 fprintf(vbFd, "%s\n", header.name);
612 } 612 }
613 613
614 if (verboseFlag == TRUE && listFlag == TRUE) { 614 if (listFlag == TRUE) {
615 printf("%s", header.name); 615 printf("%s", header.name);
616 if (header.type==LNKTYPE) /* If this is a link, say so */ 616 if (verboseFlag == TRUE) {
617 printf(" link to %s", header.linkname); 617 if (header.type==LNKTYPE) /* If this is a link, say so */
618 else if (header.type==SYMTYPE) 618 printf(" link to %s", header.linkname);
619 printf(" -> %s", header.linkname); 619 else if (header.type==SYMTYPE)
620 printf(" -> %s", header.linkname);
621 }
620 printf("\n"); 622 printf("\n");
621 } 623 }
622 624