From: Shamus Hammons Date: Fri, 28 Feb 2020 22:08:24 +0000 (-0600) Subject: Fix for bug #151 (missing LFNs for BSD style archives). X-Git-Tag: v1.7.1~10 X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rln;a=commitdiff_plain;h=d6008be63ca49180608de85e86553c55417a2b70 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. :-/ --- diff --git a/rln.c b/rln.c index a117a86..b487641 100644 --- a/rln.c +++ b/rln.c @@ -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);