Fix for bug #151 (missing LFNs for BSD style archives).

Yes boys and girls, while we checked for and read the long filename
record for *both* GNU and BSD style archives, we only checked the for
the GNU case because we thought the GNU and BSD identifiers were the
same.  :-/
This commit is contained in:
Shamus Hammons 2020-02-28 16:08:24 -06:00
parent 822fb0b235
commit d6008be63c
1 changed files with 2 additions and 1 deletions

3
rln.c
View File

@ -2448,7 +2448,8 @@ int LoadArchive(char * fname, int fd)
}
// Check to see if a long filename was requested
if (objName[0] == 0x20)
// N.B.: " " is for GNU archives, and "/" is for BSD archives
if ((objName[0] == 0x20) || (objName[0] == '/'))
{
uint32_t fnSize = atoi(objName + 1);