cvs commit: src/lib/libarchive Makefile archive_private.h archive_write_set_format_pax.c archive_write_set_format_ustar.c

Tim Kientzle kientzle at FreeBSD.org
Sun Jul 25 19:54:43 PDT 2004


kientzle    2004-07-26 02:54:42 UTC

  FreeBSD src repository

  Modified files:
    lib/libarchive       Makefile archive_private.h 
                         archive_write_set_format_pax.c 
                         archive_write_set_format_ustar.c 
  Log:
  When writing "pax" format, readers are supposed to ignore fields
  in the regular ustar header that are overridden by the pax
  extended attributes.  As a result, it makes perfect sense to
  use numeric extensions in the regular ustar header so that readers
  that don't understand pax extensions but do understand some other
  extensions can still get useful information out of it.
  
  This is especially important for filesizes, as the failure to
  read a file size correctly can get the reader out of sync.
  
  This commit introduces a "non-strict" option into the internal
  function to format a ustar header.  In non-strict mode, the formatter
  will use longer octal values (overwriting terminators) or binary
  ("base-256") values as needed to ensure that large file sizes,
  negative mtimes, etc, have the correct values stored in the regular
  ustar header.
  
  Revision  Changes    Path
  1.15      +1 -1      src/lib/libarchive/Makefile
  1.14      +7 -2      src/lib/libarchive/archive_private.h
  1.14      +28 -5     src/lib/libarchive/archive_write_set_format_pax.c
  1.9       +80 -16    src/lib/libarchive/archive_write_set_format_ustar.c


More information about the cvs-src mailing list