summaryrefslogtreecommitdiff
path: root/archival/tar.c
diff options
context:
space:
mode:
authorGlenn L McGrath2001-04-29 00:50:33 +0000
committerGlenn L McGrath2001-04-29 00:50:33 +0000
commitaf166e7ce0ceb4b19402a48c68127b425d01fd57 (patch)
tree24fe2a6ea57f48aa7bd5204f642e7bf539a19cec /archival/tar.c
parent2bf4dad7ec7bbad25efb0393a14dfc9fde7e507c (diff)
downloadbusybox-af166e7ce0ceb4b19402a48c68127b425d01fd57.zip
busybox-af166e7ce0ceb4b19402a48c68127b425d01fd57.tar.gz
Logic reversal for last_char_is
Diffstat (limited to 'archival/tar.c')
-rw-r--r--archival/tar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/tar.c b/archival/tar.c
index 716f4ac..c168564 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -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;