BSD tar broken file name parsing

Steven Hartland killing at
Sat Jul 8 00:27:13 UTC 2006

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      

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


This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 

In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337
or return the E.mail to postmaster at

More information about the freebsd-hackers mailing list