mirror of
https://github.com/sheumann/hush.git
synced 2025-03-11 18:30:22 +00:00
Skip headers with empty filenames, rather than stopping.
This commit is contained in:
parent
b9f5b82339
commit
e0244b0642
@ -595,7 +595,7 @@ static int readTarFile(int tarFd, int extractFlag, int listFlag,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( *(header.name) == '\0' )
|
if ( *(header.name) == '\0' )
|
||||||
goto endgame;
|
continue;
|
||||||
header.tarFd = tarFd;
|
header.tarFd = tarFd;
|
||||||
|
|
||||||
/* Skip funky extra GNU headers that precede long files */
|
/* Skip funky extra GNU headers that precede long files */
|
||||||
|
2
tar.c
2
tar.c
@ -595,7 +595,7 @@ static int readTarFile(int tarFd, int extractFlag, int listFlag,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( *(header.name) == '\0' )
|
if ( *(header.name) == '\0' )
|
||||||
goto endgame;
|
continue;
|
||||||
header.tarFd = tarFd;
|
header.tarFd = tarFd;
|
||||||
|
|
||||||
/* Skip funky extra GNU headers that precede long files */
|
/* Skip funky extra GNU headers that precede long files */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user