Date: Sat, 8 Jul 2006 14:55:09 -0700 From: Brooks Davis <brooks@one-eyed-alien.net> To: Steven Hartland <killing@multiplay.co.uk> Cc: freebsd-hackers@freebsd.org Subject: Re: BSD tar broken file name parsing Message-ID: <20060708215509.GA31026@odin.ac.hmc.edu> In-Reply-To: <031501c6a225$27797a00$b3db87d4@multiplay.co.uk> References: <031501c6a225$27797a00$b3db87d4@multiplay.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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 > > 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 > /usr/local/etc/apache/httpd.conf > > Similarly -tvzPf naming the file doesnt find the file. > > Using wild cards finds the file: > tar -tvzPf my.tar.gz '*httpd.conf' > -rw-r--r-- 0 root wheel 37202 May 6 23:30 > /usr/local/etc/apache/httpd.conf > > 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 > /usr/local/etc/apache/httpd.conf > > gtar -tvzPf my.tar.gz /usr/local/etc/apache/httpd.conf > -rw-r--r-- root/wheel 37202 2006-05-06 23:30:58 > /usr/local/etc/apache/httpd.conf Hmm, it look's like -P isn't quite doing it's job. -- Brooks -- 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 [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFEsCm8XY6L6fI4GtQRApvuAJ48Zv6Cyky7W5bGsv7NEvV7mY2YzQCgr2X5 YkuByEchzoUceNe08GRMg+8= =arXg -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060708215509.GA31026>
