Skip headers with empty filenames, rather than stopping.

This commit is contained in:
Matt Kraai 2001-05-01 21:12:31 +00:00
parent b9f5b82339
commit e0244b0642
2 changed files with 2 additions and 2 deletions

View File

@ -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 */

2
tar.c
View File

@ -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 */