Allow non-verbose listing to work.

This commit is contained in:
Matt Kraai 2000-09-15 21:18:43 +00:00
parent c9db2e8665
commit 82cfbad216
2 changed files with 14 additions and 10 deletions

View 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 (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");
}

4
tar.c
View 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 (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");
}