]> Dogcows Code - chaz/tar/commitdiff
(write_extended): Call xheader_xhdr_name
authorSergey Poznyakoff <gray@gnu.org.ua>
Wed, 18 Feb 2004 14:40:21 +0000 (14:40 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Wed, 18 Feb 2004 14:40:21 +0000 (14:40 +0000)
instead of using hardcoded "././@PaxHeader" name.

src/create.c

index 5292f82c6ed1224a6bfabe9f1401af5012651954..01324d353bf62d082ab8599f6e5c36b0f6121f9a 100644 (file)
@@ -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);
This page took 0.028884 seconds and 4 git commands to generate.