]> Dogcows Code - chaz/tar/blobdiff - src/create.c
Added a comment
[chaz/tar] / src / create.c
index 5292f82c6ed1224a6bfabe9f1401af5012651954..78847555d83f80415b9e816917d431222ebb6208 100644 (file)
@@ -186,6 +186,8 @@ to_chars (int negative, uintmax_t value, size_t valsize,
        {
          int negsub;
          uintmax_t sub = substitute (&negsub) & maxval;
+         /* FIXME: This is the only place where GNU_FORMAT differs from
+             OLDGNU_FORMAT. Apart from this they are completely identical. */
          uintmax_t s = (negsub &= archive_format == GNU_FORMAT) ? - sub : sub;
          char subbuf[UINTMAX_STRSIZE_BOUND + 1];
          char *sub_string = STRINGIFY_BIGINT (s, subbuf + 1);
@@ -547,8 +549,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.021241 seconds and 4 git commands to generate.