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: pgpfHyPvnY0Cg.pgp
Description: PGP signature

Reply via email to