bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] tar --append corrupts ustar-format archive


From: Sergey Poznyakoff
Subject: Re: [Bug-tar] tar --append corrupts ustar-format archive
Date: Thu, 10 Feb 2005 23:54:10 +0200

Adye, TJ \(Tim\) <address@hidden> wrote:

> Can someone help?

Sure. Apply the attached patch.

Regards,
Sergey

Index: src/list.c
===================================================================
RCS file: /cvsroot/tar/tar/src/list.c,v
retrieving revision 1.84
diff -p -u -r1.84 list.c
--- src/list.c  4 Feb 2005 01:52:20 -0000       1.84
+++ src/list.c  10 Feb 2005 21:49:59 -0000
@@ -465,11 +465,6 @@ read_header (bool raw_extended_headers)
                  np[sizeof h->prefix] = '\0';
                  np += strlen (np);
                  *np++ = '/';
-
-                 /* Prevent later references to current_header from
-                    mistakenly treating this as an old GNU header.
-                    This assignment invalidates h->prefix.  */
-                 current_header->oldgnu_header.isextended = 0;
                }
              memcpy (np, h->name, sizeof h->name);
              np[sizeof h->name] = '\0';

reply via email to

[Prev in Thread] Current Thread [Next in Thread]