From owner-cvs-src@FreeBSD.ORG Fri Oct 12 04:11:32 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D00516A419; Fri, 12 Oct 2007 04:11:32 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 11F5713C4A5; Fri, 12 Oct 2007 04:11:32 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l9C4BWns062251; Fri, 12 Oct 2007 04:11:32 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l9C4BWrq062250; Fri, 12 Oct 2007 04:11:32 GMT (envelope-from kientzle) Message-Id: <200710120411.l9C4BWrq062250@repoman.freebsd.org> From: Tim Kientzle Date: Fri, 12 Oct 2007 04:11:31 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libarchive archive_write_set_format_cpio.c archive_write_set_format_cpio_newc.c src/lib/libarchive/test test_write_format_cpio.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 12 Oct 2007 04:11:32 -0000 kientzle 2007-10-12 04:11:31 UTC FreeBSD src repository Modified files: lib/libarchive archive_write_set_format_cpio.c archive_write_set_format_cpio_newc.c lib/libarchive/test test_write_format_cpio.c Log: Correct the cpio writers to not accept data for non-regular files. In particular, the previous code led to archives that had non-empty bodies following directory entries. Not a fatal problem, as bsdtar and GNU cpio are both happy to just skip this bogus data, but it still shouldn't be there. MFC after: 3 days Revision Changes Path 1.12 +6 -1 src/lib/libarchive/archive_write_set_format_cpio.c 1.2 +6 -1 src/lib/libarchive/archive_write_set_format_cpio_newc.c 1.3 +29 -1 src/lib/libarchive/test/test_write_format_cpio.c