From: Matt Kraai Date: Tue, 1 May 2001 21:12:31 +0000 (-0000) Subject: Skip headers with empty filenames, rather than stopping. X-Git-Tag: 0_52~258 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e0244b06428c80b80719957d28a1234cc84ad0b4;p=oweals%2Fbusybox.git Skip headers with empty filenames, rather than stopping. --- diff --git a/archival/tar.c b/archival/tar.c index 4bf8004ea..eb085c770 100644 --- a/archival/tar.c +++ b/archival/tar.c @@ -595,7 +595,7 @@ static int readTarFile(int tarFd, int extractFlag, int listFlag, } } if ( *(header.name) == '\0' ) - goto endgame; + continue; header.tarFd = tarFd; /* Skip funky extra GNU headers that precede long files */ diff --git a/tar.c b/tar.c index 4bf8004ea..eb085c770 100644 --- a/tar.c +++ b/tar.c @@ -595,7 +595,7 @@ static int readTarFile(int tarFd, int extractFlag, int listFlag, } } if ( *(header.name) == '\0' ) - goto endgame; + continue; header.tarFd = tarFd; /* Skip funky extra GNU headers that precede long files */