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: @smallexample -%d/PaxHeaders.%p/%f +%d/PaxHeaders.0/%f @end smallexample @item exthdr.mtime=@var{value} @@ -9948,7 +9948,7 @@ If no option @samp{globexthdr.name=string} is specified, @command{tar} will use the following default value: @smallexample -$TMPDIR/GlobalHead.%p.%n +$TMPDIR/GlobalHead.0.%n @end smallexample @noindent 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