summaryrefslogtreecommitdiff
path: root/archival/tar.c
diff options
context:
space:
mode:
authorMatt Kraai2000-09-15 21:18:43 +0000
committerMatt Kraai2000-09-15 21:18:43 +0000
commit82cfbad2164d4f8893c87129ffa241c57edbc6bf (patch)
tree1c295d257ec832fa8894e99626822798948ee06c /archival/tar.c
parentc9db2e8665887d0dc5746f9cea99eca90ea10a0c (diff)
downloadbusybox-82cfbad2164d4f8893c87129ffa241c57edbc6bf.zip
busybox-82cfbad2164d4f8893c87129ffa241c57edbc6bf.tar.gz
Allow non-verbose listing to work.
Diffstat (limited to 'archival/tar.c')
-rw-r--r--archival/tar.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/archival/tar.c b/archival/tar.c
index d316611..de99656 100644
--- a/archival/tar.c
+++ b/archival/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");
}