From owner-cvs-all@FreeBSD.ORG Sun Jan 13 23:50:30 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E38A16A417; Sun, 13 Jan 2008 23:50:30 +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 58BA913C45B; Sun, 13 Jan 2008 23:50:30 +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 m0DNoU8K046606; Sun, 13 Jan 2008 23:50:30 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m0DNoUL0046604; Sun, 13 Jan 2008 23:50:30 GMT (envelope-from kientzle) Message-Id: <200801132350.m0DNoUL0046604@repoman.freebsd.org> From: Tim Kientzle Date: Sun, 13 Jan 2008 23:50:30 +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_support_format_tar.c src/lib/libarchive/test test_read_format_tar.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 13 Jan 2008 23:50:30 -0000 kientzle 2008-01-13 23:50:30 UTC FreeBSD src repository Modified files: lib/libarchive archive_read_support_format_tar.c lib/libarchive/test test_read_format_tar.c Log: Since the tar bidder can never get called more than once, it doesn't need to compensate for this situation. While here, fix a minor longstanding bug that empty tar archives (which begin with at least 512 zero bytes) never properly reported their format. In particular, this fixes the output of: bsdtar tvvf /dev/zero And, of course, a new test to verify that libarchive correctly recognizes the format of such files. Revision Changes Path 1.64 +12 -23 src/lib/libarchive/archive_read_support_format_tar.c 1.3 +47 -0 src/lib/libarchive/test/test_read_format_tar.c