bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] --xattrs makes archives unreproducible


From: Zachary Vance
Subject: Re: [Bug-tar] --xattrs makes archives unreproducible
Date: Fri, 26 Jun 2015 15:37:26 -0700

Archives with extended headers are reproducible

* I've changed ".%p" in the default headers to .0 instead of stripping the component. This is in the hopes that this will maintain some compatibility with old parsers.
---
 doc/tar.texi  | 4 ++--
 src/xheader.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/doc/tar.texi b/doc/tar.texi
index 9cff066..648bac8 100644
--- a/doc/tar.texi
+++ b/doc/tar.texi
@@ -9916,7 +9916,7 @@ If no option @samp{exthdr.name=string} is specified, @command{tar}
 will use the following default value:

address@hidden
-%d/PaxHeaders.%p/%f
+%d/PaxHeaders.0/%f
address@hidden smallexample

address@hidden address@hidden
@@ -9948,7 +9948,7 @@ If no option @samp{globexthdr.name=string} is specified, @command{tar}
 will use the following default value:

address@hidden
-$TMPDIR/GlobalHead.%p.%n
+$TMPDIR/GlobalHead.0.%n
address@hidden smallexample

address@hidden
diff --git a/src/xheader.c b/src/xheader.c
index a5452a1..4aeee60 100644
--- a/src/xheader.c
+++ b/src/xheader.c
@@ -363,11 +363,11 @@ char *
 xheader_xhdr_name (struct tar_stat_info *st)
 {
   if (!exthdr_name)
-    assign_string (&exthdr_name, "%d/PaxHeaders.%p/%f");
+    assign_string (&exthdr_name, "%d/PaxHeaders.0/%f");
   return xheader_format_name (st, exthdr_name, 0);
 }

-#define GLOBAL_HEADER_TEMPLATE "/GlobalHead.%p.%n"
+#define GLOBAL_HEADER_TEMPLATE "/GlobalHead.0.%n"

 char *
 xheader_ghdr_name (void)
-- 
2.4.4

reply via email to

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