Allow non-verbose listing to work.
authorMatt Kraai <kraai@debian.org>
Fri, 15 Sep 2000 21:18:43 +0000 (21:18 -0000)
committerMatt Kraai <kraai@debian.org>
Fri, 15 Sep 2000 21:18:43 +0000 (21:18 -0000)
archival/tar.c
tar.c

index d316611846e36b9897a272b8bfff12eca069b1f4..de99656c6a6228badb9de66880ef0e365b875e1c 100644 (file)
@@ -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 d316611846e36b9897a272b8bfff12eca069b1f4..de99656c6a6228badb9de66880ef0e365b875e1c 100644 (file)
--- 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");
                }