From owner-cvs-src@FreeBSD.ORG Fri Sep 21 04:52:43 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 78A2116A419; Fri, 21 Sep 2007 04:52:43 +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 716CE13C447; Fri, 21 Sep 2007 04:52:43 +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 l8L4qhR1055400; Fri, 21 Sep 2007 04:52:43 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l8L4qhQ5055399; Fri, 21 Sep 2007 04:52:43 GMT (envelope-from kientzle) Message-Id: <200709210452.l8L4qhQ5055399@repoman.freebsd.org> From: Tim Kientzle Date: Fri, 21 Sep 2007 04:52:43 +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_disk.c src/lib/libarchive/test test_write_disk.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, 21 Sep 2007 04:52:43 -0000 kientzle 2007-09-21 04:52:43 UTC FreeBSD src repository Modified files: lib/libarchive archive_write_disk.c lib/libarchive/test test_write_disk.c Log: Fix the archive_write_data() function so it always returns number of bytes written, even when used to write files to disk. Extend the test suite to verify the correct return values for archive_write_data() and archive_write_data_block(). Thanks to: Bruce Mah, for stepping in promptly to back out the earlier broken version of this fix Thanks to: Colin Percival, for pointing out the correct fix MFC after: 5 days Approved by: re (ksmith) Pointy hat: \me Revision Changes Path 1.17 +10 -3 src/lib/libarchive/archive_write_disk.c 1.6 +76 -1 src/lib/libarchive/test/test_write_disk.c