From owner-cvs-all@FreeBSD.ORG Fri Jun 4 03:27:23 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6633D16A4CE; Fri, 4 Jun 2004 03:27:23 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6154543D2F; Fri, 4 Jun 2004 03:27:23 -0700 (PDT) (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 i54ARNHe015621; Fri, 4 Jun 2004 03:27:23 -0700 (PDT) (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i54ARNDg015620; Fri, 4 Jun 2004 03:27:23 -0700 (PDT) (envelope-from kientzle) Message-Id: <200406041027.i54ARNDg015620@repoman.freebsd.org> From: Tim Kientzle Date: Fri, 4 Jun 2004 03:27:23 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libarchive archive_read_support_format_tar.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2004 10:27:23 -0000 kientzle 2004/06/04 03:27:23 PDT FreeBSD src repository Modified files: lib/libarchive archive_read_support_format_tar.c Log: When we go to read the next tar header, if we get zero bytes, accept that as end-of-archive. Otherwise, a short read at this point generates an error. This accomodates broken tar writers (such as the one apparently in use at AT&T Labs) that don't even write a single end-of-archive block. Note that both star and pdtar behave this way as well. In contrast, gtar doesn't complain in either case, and as a result, will generate no warning for a lot of trashed archives. Pointed out by: shells/ksh93 port (Thanks to Kris Kennaway) Revision Changes Path 1.16 +22 -3 src/lib/libarchive/archive_read_support_format_tar.c