mirror of
https://github.com/sheumann/hush.git
synced 2025-01-03 00:31:16 +00:00
Logic reversal for last_char_is
This commit is contained in:
parent
2bf4dad7ec
commit
af166e7ce0
@ -706,7 +706,7 @@ static int readTarFile(int tarFd, int extractFlag, int listFlag,
|
|||||||
case REGTYPE0:
|
case REGTYPE0:
|
||||||
/* If the name ends in a '/' then assume it is
|
/* If the name ends in a '/' then assume it is
|
||||||
* supposed to be a directory, and fall through */
|
* supposed to be a directory, and fall through */
|
||||||
if (last_char_is(header.name,'/')) {
|
if (!last_char_is(header.name,'/')) {
|
||||||
if (tarExtractRegularFile(&header, extractFlag, tostdoutFlag)==FALSE)
|
if (tarExtractRegularFile(&header, extractFlag, tostdoutFlag)==FALSE)
|
||||||
errorFlag=TRUE;
|
errorFlag=TRUE;
|
||||||
break;
|
break;
|
||||||
|
2
tar.c
2
tar.c
@ -706,7 +706,7 @@ static int readTarFile(int tarFd, int extractFlag, int listFlag,
|
|||||||
case REGTYPE0:
|
case REGTYPE0:
|
||||||
/* If the name ends in a '/' then assume it is
|
/* If the name ends in a '/' then assume it is
|
||||||
* supposed to be a directory, and fall through */
|
* supposed to be a directory, and fall through */
|
||||||
if (last_char_is(header.name,'/')) {
|
if (!last_char_is(header.name,'/')) {
|
||||||
if (tarExtractRegularFile(&header, extractFlag, tostdoutFlag)==FALSE)
|
if (tarExtractRegularFile(&header, extractFlag, tostdoutFlag)==FALSE)
|
||||||
errorFlag=TRUE;
|
errorFlag=TRUE;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user