From owner-cvs-src@FreeBSD.ORG Mon Jun 7 04:32:15 2004 Return-Path: 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 EB18A16A4E2; Mon, 7 Jun 2004 04:32:15 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE08943D45; Mon, 7 Jun 2004 04:32:15 +0000 (GMT) (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 i574WAc5077695; Mon, 7 Jun 2004 04:32:10 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i574WAOR077691; Mon, 7 Jun 2004 04:32:10 GMT (envelope-from kientzle) Message-Id: <200406070432.i574WAOR077691@repoman.freebsd.org> From: Tim Kientzle Date: Mon, 7 Jun 2004 04:32:10 +0000 (UTC) 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-src@freebsd.org X-Mailman-Version: 2.1.1 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, 07 Jun 2004 04:32:16 -0000 kientzle 2004-06-07 04:32:10 UTC FreeBSD src repository Modified files: lib/libarchive archive_read_support_format_tar.c Log: Tar bidder should just return a zero bid ("not me!") if it sees a truncated input the first time it gets called. (In particular, files shorter than 512 bytes cannot be tar archives.) This allows the top-level archive_read_next_header code to generate a proper error message for unrecognized file types. Pointed out by: numerous ports that expect tar to extract non-tar files ;-( Thanks to: Kris Kennaway Revision Changes Path 1.18 +9 -3 src/lib/libarchive/archive_read_support_format_tar.c