Logic reversal for last_char_is

This commit is contained in:
Glenn L McGrath committed 2001-04-29 00:50:33 +00:00
1 parent 2bf4dad7ec
commit af166e7ce0
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -706,7 +706,7 @@ static int readTarFile(int tarFd, int extractFlag, int listFlag,
case REGTYPE0:
/* If the name ends in a '/' then assume it is
* 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)
errorFlag=TRUE;
break;
+1 -1
View File
@@ -706,7 +706,7 @@ static int readTarFile(int tarFd, int extractFlag, int listFlag,
case REGTYPE0:
/* If the name ends in a '/' then assume it is
* 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)
errorFlag=TRUE;
break;