Date: Mon, 26 Jul 2004 02:54:42 +0000 (UTC) From: Tim Kientzle <kientzle@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libarchive Makefile archive_private.h archive_write_set_format_pax.c archive_write_set_format_ustar.c Message-ID: <200407260254.i6Q2sh7T064083@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407260254.i6Q2sh7T064083>