From: Paul Eggert Date: Wed, 11 Aug 1999 14:43:46 +0000 (+0000) Subject: (read_header): Don't parse OLDGNU_FORMAT incremental headers X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=67f20a741a120fcbc43f3bb28617b8fb0155bdd3;p=chaz%2Ftar (read_header): Don't parse OLDGNU_FORMAT incremental headers as POSIX prefixes. --- diff --git a/src/list.c b/src/list.c index a06340d..298fd00 100644 --- a/src/list.c +++ b/src/list.c @@ -433,8 +433,10 @@ read_header (void) { /* Accept file names as specified by POSIX.1-1996 section 10.1.1. */ + int is_posix = (strcmp (h->magic, TMAGIC) == 0); char *np = namebuf; - if (h->prefix[0]) + + if (is_posix && h->prefix[0]) { memcpy (np, h->prefix, sizeof h->prefix); np[sizeof h->prefix] = '\0';