diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2001-04-29 00:50:33 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2001-04-29 00:50:33 +0000 |
commit | af166e7ce0ceb4b19402a48c68127b425d01fd57 (patch) | |
tree | 24fe2a6ea57f48aa7bd5204f642e7bf539a19cec | |
parent | 2bf4dad7ec7bbad25efb0393a14dfc9fde7e507c (diff) | |
download | busybox-w32-af166e7ce0ceb4b19402a48c68127b425d01fd57.tar.gz busybox-w32-af166e7ce0ceb4b19402a48c68127b425d01fd57.tar.bz2 busybox-w32-af166e7ce0ceb4b19402a48c68127b425d01fd57.zip |
Logic reversal for last_char_is
-rw-r--r-- | archival/tar.c | 2 | ||||
-rw-r--r-- | tar.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/archival/tar.c b/archival/tar.c index 716f4ac30..c168564ca 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
@@ -706,7 +706,7 @@ static int readTarFile(int tarFd, int extractFlag, int listFlag, | |||
706 | case REGTYPE0: | 706 | case REGTYPE0: |
707 | /* If the name ends in a '/' then assume it is | 707 | /* If the name ends in a '/' then assume it is |
708 | * supposed to be a directory, and fall through */ | 708 | * supposed to be a directory, and fall through */ |
709 | if (last_char_is(header.name,'/')) { | 709 | if (!last_char_is(header.name,'/')) { |
710 | if (tarExtractRegularFile(&header, extractFlag, tostdoutFlag)==FALSE) | 710 | if (tarExtractRegularFile(&header, extractFlag, tostdoutFlag)==FALSE) |
711 | errorFlag=TRUE; | 711 | errorFlag=TRUE; |
712 | break; | 712 | break; |
@@ -706,7 +706,7 @@ static int readTarFile(int tarFd, int extractFlag, int listFlag, | |||
706 | case REGTYPE0: | 706 | case REGTYPE0: |
707 | /* If the name ends in a '/' then assume it is | 707 | /* If the name ends in a '/' then assume it is |
708 | * supposed to be a directory, and fall through */ | 708 | * supposed to be a directory, and fall through */ |
709 | if (last_char_is(header.name,'/')) { | 709 | if (!last_char_is(header.name,'/')) { |
710 | if (tarExtractRegularFile(&header, extractFlag, tostdoutFlag)==FALSE) | 710 | if (tarExtractRegularFile(&header, extractFlag, tostdoutFlag)==FALSE) |
711 | errorFlag=TRUE; | 711 | errorFlag=TRUE; |
712 | break; | 712 | break; |