From owner-cvs-src@FreeBSD.ORG Mon Apr 16 04:04:52 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 84BD216A401; Mon, 16 Apr 2007 04:04:52 +0000 (UTC) (envelope-from cperciva@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 756C513C459; Mon, 16 Apr 2007 04:04:52 +0000 (UTC) (envelope-from cperciva@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l3G44qGO047530; Mon, 16 Apr 2007 04:04:52 GMT (envelope-from cperciva@repoman.freebsd.org) Received: (from cperciva@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l3G44qfj047528; Mon, 16 Apr 2007 04:04:52 GMT (envelope-from cperciva) Message-Id: <200704160404.l3G44qfj047528@repoman.freebsd.org> From: Colin Percival Date: Mon, 16 Apr 2007 04:04:50 +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_read_extract.c src/usr.bin/tar read.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: Mon, 16 Apr 2007 04:04:52 -0000 cperciva 2007-04-16 04:04:50 UTC FreeBSD src repository Modified files: lib/libarchive archive_read_extract.c usr.bin/tar read.c Log: In libarchive: Downgrade ARCHIVE_FATAL and ARCHIVE_FAILED errors which occur on the write side of extracting a file to ARCHIVE_WARN errors when returning them from archive_read_extract. In bsdtar: Use the return code from archive_read_data_into_fd and archive_read_extract to determine whether we should continue trying to extract an archive after one of the entries fails. This commit makes extracting a truncated tarball complain once about the archive being truncated, instead of complaining twice (once when trying to extract an entry, and once when trying to seek to the next entry). Discussed with: kientzle Revision Changes Path 1.58 +6 -0 src/lib/libarchive/archive_read_extract.c 1.31 +8 -9 src/usr.bin/tar/read.c