From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 8 00:27:13 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 2510E16A4DA for ; Sat, 8 Jul 2006 00:27:13 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: from multiplay.co.uk (core6.multiplay.co.uk [85.236.96.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8674643D45 for ; Sat, 8 Jul 2006 00:27:12 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [85.236.96.23]) (MDaemon PRO v9.0.1) with ESMTP id md50002741863.msg for ; Sat, 08 Jul 2006 01:27:02 +0100 Message-ID: <031501c6a225$27797a00$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: Date: Sat, 8 Jul 2006 01:26:21 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Spam-Processed: multiplay.co.uk, Sat, 08 Jul 2006 01:27:02 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-hackers@freebsd.org X-MDAV-Processed: multiplay.co.uk, Sat, 08 Jul 2006 01:27:04 +0100 Subject: 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 00:27:13 -0000 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 Steve ================================================ 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@multiplay.co.uk.