From owner-cvs-src@FreeBSD.ORG Tue Jun 26 03:06:49 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 5485516A41F; Tue, 26 Jun 2007 03:06:49 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 425C613C45D; Tue, 26 Jun 2007 03:06:49 +0000 (UTC) (envelope-from kientzle@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 l5Q36nZ5063249; Tue, 26 Jun 2007 03:06:49 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l5Q36nnn063248; Tue, 26 Jun 2007 03:06:49 GMT (envelope-from kientzle) Message-Id: <200706260306.l5Q36nnn063248@repoman.freebsd.org> From: Tim Kientzle Date: Tue, 26 Jun 2007 03:06:48 +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_open_fd.c archive_read_open_file.c archive_read_open_filename.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: Tue, 26 Jun 2007 03:06:49 -0000 kientzle 2007-06-26 03:06:48 UTC FreeBSD src repository Modified files: lib/libarchive archive_read_open_fd.c archive_read_open_file.c archive_read_open_filename.c Log: Fix 'bsdtar -t' on tape drives. Libarchive uses the skip() callback to skip over data when reading uncompressed archives. This gets invoked, for example, during tar -t or tar -x with a filename argument. The revised code only calls [lf]seek() on regular files, instead of depending on the kernel to return an error. Thanks to: bde for explaining the implementation of lseek() Thanks to: Daniel O'Connor for testing Approved by: re (Ken Smith) MFC after: 5 days Revision Changes Path 1.13 +13 -2 src/lib/libarchive/archive_read_open_fd.c 1.20 +18 -8 src/lib/libarchive/archive_read_open_file.c 1.20 +14 -2 src/lib/libarchive/archive_read_open_filename.c