mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 01:32:08 +00:00
Allow non-verbose listing to work.
This commit is contained in:
parent
c9db2e8665
commit
82cfbad216
@ -611,12 +611,14 @@ static int readTarFile(const char* tarName, int extractFlag, int listFlag,
|
|||||||
fprintf(vbFd, "%s\n", header.name);
|
fprintf(vbFd, "%s\n", header.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (verboseFlag == TRUE && listFlag == TRUE) {
|
if (listFlag == TRUE) {
|
||||||
printf("%s", header.name);
|
printf("%s", header.name);
|
||||||
|
if (verboseFlag == TRUE) {
|
||||||
if (header.type==LNKTYPE) /* If this is a link, say so */
|
if (header.type==LNKTYPE) /* If this is a link, say so */
|
||||||
printf(" link to %s", header.linkname);
|
printf(" link to %s", header.linkname);
|
||||||
else if (header.type==SYMTYPE)
|
else if (header.type==SYMTYPE)
|
||||||
printf(" -> %s", header.linkname);
|
printf(" -> %s", header.linkname);
|
||||||
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
4
tar.c
4
tar.c
@ -611,12 +611,14 @@ static int readTarFile(const char* tarName, int extractFlag, int listFlag,
|
|||||||
fprintf(vbFd, "%s\n", header.name);
|
fprintf(vbFd, "%s\n", header.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (verboseFlag == TRUE && listFlag == TRUE) {
|
if (listFlag == TRUE) {
|
||||||
printf("%s", header.name);
|
printf("%s", header.name);
|
||||||
|
if (verboseFlag == TRUE) {
|
||||||
if (header.type==LNKTYPE) /* If this is a link, say so */
|
if (header.type==LNKTYPE) /* If this is a link, say so */
|
||||||
printf(" link to %s", header.linkname);
|
printf(" link to %s", header.linkname);
|
||||||
else if (header.type==SYMTYPE)
|
else if (header.type==SYMTYPE)
|
||||||
printf(" -> %s", header.linkname);
|
printf(" -> %s", header.linkname);
|
||||||
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user