From 434f2a22ba7a7cbe319aa19026c1f603f3794662 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Wed, 18 Feb 2004 14:40:21 +0000 Subject: [PATCH] (write_extended): Call xheader_xhdr_name instead of using hardcoded "././@PaxHeader" name. --- src/create.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/create.c b/src/create.c index 5292f82..01324d3 100644 --- a/src/create.c +++ b/src/create.c @@ -547,8 +547,9 @@ write_extended (struct tar_stat_info *st, union block *old_header, char type) size = extended_header.size; memcpy (hp.buffer, old_header, sizeof (hp)); - - header = start_private_header ("././@PaxHeader", size); + + header = start_private_header (p = xheader_xhdr_name (st), size); + free (p); header->header.typeflag = type; finish_header (st, header, -1); -- 2.45.2