From owner-cvs-src@FreeBSD.ORG Wed Nov 15 05:14:20 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org 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 DC7FE16A412; Wed, 15 Nov 2006 05:14:20 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A93D343D58; Wed, 15 Nov 2006 05:14:20 +0000 (GMT) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kAF5EKC6076587; Wed, 15 Nov 2006 05:14:20 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kAF5EK7o076586; Wed, 15 Nov 2006 05:14:20 GMT (envelope-from kientzle) Message-Id: <200611150514.kAF5EK7o076586@repoman.freebsd.org> From: Tim Kientzle Date: Wed, 15 Nov 2006 05:14:20 +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_private.h archive_write.c archive_write_set_format_cpio.c archive_write_set_format_pax.c archive_write_set_format_shar.c archive_write_set_format_ustar.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: Wed, 15 Nov 2006 05:14:21 -0000 kientzle 2006-11-15 05:14:20 UTC FreeBSD src repository Modified files: lib/libarchive archive_private.h archive_write.c archive_write_set_format_cpio.c archive_write_set_format_pax.c archive_write_set_format_shar.c archive_write_set_format_ustar.c Log: Change the internal API for writing data to an entry; make the internal format-specific functions return the same as the public function, so that the public API layer doesn't have to guess the correct return value. This addresses an obscure problem that occurs when someone tries to write more data than the size of the entry (as indicated in the entry header). In this case, the return value from archive_write_data() was incorrect, reflecting the requested write rather than the amount actually written. MFC after: 15 days Revision Changes Path 1.24 +1 -1 src/lib/libarchive/archive_private.h 1.21 +1 -3 src/lib/libarchive/archive_write.c 1.8 +6 -3 src/lib/libarchive/archive_write_set_format_cpio.c 1.36 +6 -3 src/lib/libarchive/archive_write_set_format_pax.c 1.13 +9 -6 src/lib/libarchive/archive_write_set_format_shar.c 1.16 +5 -3 src/lib/libarchive/archive_write_set_format_ustar.c