]> Dogcows Code - chaz/tar/commitdiff
Added a comment
authorSergey Poznyakoff <gray@gnu.org.ua>
Fri, 20 Feb 2004 11:45:15 +0000 (11:45 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Fri, 20 Feb 2004 11:45:15 +0000 (11:45 +0000)
src/create.c
src/tar.h

index 01324d353bf62d082ab8599f6e5c36b0f6121f9a..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);
index 25b65b14b2f913fcfa0f7903f26f5f62c85ba638..677d1dd02d2e03a0885720f73ce40d725266274b 100644 (file)
--- a/src/tar.h
+++ b/src/tar.h
@@ -253,7 +253,9 @@ enum archive_format
   USTAR_FORMAT,                 /* POSIX.1-1988 (ustar) format */
   POSIX_FORMAT,                        /* POSIX.1-2001 format */
   STAR_FORMAT,                  /* Star format defined in 1994 */
-  GNU_FORMAT                   /* POSIX format with GNU extensions */
+  GNU_FORMAT                   /* Same as OLDGNU_FORMAT with one exception:
+                                   see FIXME note for to_chars() function
+                                   (create.c:189) */
 };
 
 /* Information about a sparse file.  */
This page took 0.026328 seconds and 4 git commands to generate.