summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 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");
}
diff --git a/tar.c b/tar.c
index d316611..de99656 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");
}