From: Sergey Poznyakoff Date: Wed, 18 Feb 2004 14:40:21 +0000 (+0000) Subject: (write_extended): Call xheader_xhdr_name X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=434f2a22ba7a7cbe319aa19026c1f603f3794662;p=chaz%2Ftar (write_extended): Call xheader_xhdr_name instead of using hardcoded "././@PaxHeader" name. --- 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);