From owner-cvs-src@FreeBSD.ORG Mon Jul 26 02:54:43 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5DD2216A4D5; Mon, 26 Jul 2004 02:54:43 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 367E643D2D; Mon, 26 Jul 2004 02:54:43 +0000 (GMT) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i6Q2sh9U064084; Mon, 26 Jul 2004 02:54:43 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i6Q2sh7T064083; Mon, 26 Jul 2004 02:54:43 GMT (envelope-from kientzle) Message-Id: <200407260254.i6Q2sh7T064083@repoman.freebsd.org> From: Tim Kientzle Date: Mon, 26 Jul 2004 02:54:42 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libarchive Makefile archive_private.h archive_write_set_format_pax.c archive_write_set_format_ustar.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jul 2004 02:54:43 -0000 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