aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2000-09-15 21:18:43 +0000
committerMatt Kraai <kraai@debian.org>2000-09-15 21:18:43 +0000
commit82cfbad2164d4f8893c87129ffa241c57edbc6bf (patch)
tree1c295d257ec832fa8894e99626822798948ee06c
parentc9db2e8665887d0dc5746f9cea99eca90ea10a0c (diff)
downloadbusybox-w32-82cfbad2164d4f8893c87129ffa241c57edbc6bf.tar.gz
busybox-w32-82cfbad2164d4f8893c87129ffa241c57edbc6bf.tar.bz2
busybox-w32-82cfbad2164d4f8893c87129ffa241c57edbc6bf.zip
Allow non-verbose listing to work.
-rw-r--r--archival/tar.c12
-rw-r--r--tar.c12
2 files changed, 14 insertions, 10 deletions
diff --git a/archival/tar.c b/archival/tar.c
index d31661184..de99656c6 100644
--- a/archival/tar.c
+++ b/archival/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
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