From owner-cvs-src-old@FreeBSD.ORG Tue Oct 21 05:08:48 2008 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C46C410657D2 for ; Tue, 21 Oct 2008 05:08:48 +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 B051F8FC21 for ; Tue, 21 Oct 2008 05:08:48 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id m9L58mdu039980 for ; Tue, 21 Oct 2008 05:08:48 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id m9L58meO039979 for cvs-src-old@freebsd.org; Tue, 21 Oct 2008 05:08:48 GMT (envelope-from kientzle@repoman.freebsd.org) Message-Id: <200810210508.m9L58meO039979@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kientzle@repoman.freebsd.org using -f From: Tim Kientzle Date: Tue, 21 Oct 2008 05:08:35 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libarchive archive_read_support_format_zip.c src/lib/libarchive/test test_read_format_zip.c test_read_format_zip.zip.uu X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Oct 2008 05:08:48 -0000 kientzle 2008-10-21 05:08:35 UTC FreeBSD src repository Modified files: lib/libarchive archive_read_support_format_zip.c lib/libarchive/test test_read_format_zip.c test_read_format_zip.zip.uu Log: SVN rev 184109 on 2008-10-21 05:08:35Z by kientzle If we don't know the file size, leave the file size unset. If it's not a regular file, don't return any data, even if the size is unknown. Update the Zip test with a hand-tweaked Zip archive that has a directory (with length-at-end set), a regular file without length-at-end set, and a regular file with length-at-end set and a bad CRC. Update the test code to verify that the file size is unset for the regular file with length-at-end. MFC after: 7 days Revision Changes Path 1.27 +10 -4 src/lib/libarchive/archive_read_support_format_zip.c 1.8 +8 -1 src/lib/libarchive/test/test_read_format_zip.c 1.3 +10 -9 src/lib/libarchive/test/test_read_format_zip.zip.uu