mirror of
https://github.com/sheumann/hush.git
synced 2024-12-26 10:32:02 +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);
|
||||
}
|
||||
|
||||
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
4
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 (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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user