From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 8 21:55:18 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8216016A4DD for ; Sat, 8 Jul 2006 21:55:18 +0000 (UTC) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id DFF6943D46 for ; Sat, 8 Jul 2006 21:55:10 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id k68Lt964031457; Sat, 8 Jul 2006 14:55:09 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id k68Lt97q031456; Sat, 8 Jul 2006 14:55:09 -0700 Date: Sat, 8 Jul 2006 14:55:09 -0700 From: Brooks Davis To: Steven Hartland Message-ID: <20060708215509.GA31026@odin.ac.hmc.edu> References: <031501c6a225$27797a00$b3db87d4@multiplay.co.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KsGdsel6WgEHnImy" Content-Disposition: inline In-Reply-To: <031501c6a225$27797a00$b3db87d4@multiplay.co.uk> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new Cc: freebsd-hackers@freebsd.org Subject: Re: BSD tar broken file name parsing X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jul 2006 21:55:18 -0000 --KsGdsel6WgEHnImy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 08, 2006 at 01:26:21AM +0100, Steven Hartland wrote: > Just had a really strange one, on a fresh 6.1 install > tar will not extract named files e.g. > tar -xvzPf my.tar.gz /usr/local/etc/apache/httpd.conf >=20 > The above fails to extract the file which quite > clearly exists: > tar -tvzPf my.tar.gz | grep /usr/local/etc/httpd.conf > -rw-r--r-- 0 root wheel 37202 May 6 23:30=20 > /usr/local/etc/apache/httpd.conf >=20 > Similarly -tvzPf naming the file doesnt find the file. >=20 > Using wild cards finds the file: > tar -tvzPf my.tar.gz '*httpd.conf' =20 > -rw-r--r-- 0 root wheel 37202 May 6 23:30=20 > /usr/local/etc/apache/httpd.conf >=20 > I suspect its -P processing that is broken. Installing > gtar and using that works fine: > gtar -xvzPf my.tar.gz /usr/local/etc/apache/httpd.conf =20 > /usr/local/etc/apache/httpd.conf >=20 > gtar -tvzPf my.tar.gz /usr/local/etc/apache/httpd.conf > -rw-r--r-- root/wheel 37202 2006-05-06 23:30:58=20 > /usr/local/etc/apache/httpd.conf Hmm, it look's like -P isn't quite doing it's job. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --KsGdsel6WgEHnImy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFEsCm8XY6L6fI4GtQRApvuAJ48Zv6Cyky7W5bGsv7NEvV7mY2YzQCgr2X5 YkuByEchzoUceNe08GRMg+8= =arXg -----END PGP SIGNATURE----- --KsGdsel6WgEHnImy--