From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Bentley, Adam \( Dist \)" Newsgroups: gmane.os.tru64.managers Subject: bizzare behaviour of stock tar (4.0f PK7) Date: Mon, 22 Mar 2004 16:57:12 +0000 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <57B8273EB1E40A41AC7B94143007E08901883C1A@CORWWPKSEXV01.corp.pg.eon.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1079974669 25098 80.91.224.253 (22 Mar 2004 16:57:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Mar 2004 16:57:49 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Mon Mar 22 17:57:30 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1B5Sjx-0008Dp-00 for ; Mon, 22 Mar 2004 17:57:29 +0100 Original-Received: (qmail 14152 invoked by uid 5); 22 Mar 2004 16:57:22 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 14137 invoked by uid 49493); 22 Mar 2004 16:57:21 -0000 Original-Received: from Adam.Bentley@eme.co.uk by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(0.0/5.0):. Processed in 0.880152 secs); 22 Mar 2004 16:57:21 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 22 Mar 2004 16:57:20 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HUZ00LRYLRFW3@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 22 Mar 2004 11:57:20 -0500 (EST) Original-Received: from corpgpksmsw01.pgen1.com ([217.158.191.215]) by emroute1.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HUZ00I5QLRDCT@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 22 Mar 2004 11:57:14 -0500 (EST) Original-Received: from corwwpksexn01.corp.pg.eon.net (unverified) by corpgpksmsw01.pgen1.com (Content Technologies SMTPRS 4.3.10) with ESMTP id for ; Mon, 22 Mar 2004 16:57:37 +0000 Original-Received: from CORWWPKSEXV01.corp.pg.eon.net ([10.80.96.32]) by corwwpksexn01.corp.pg.eon.net with Microsoft SMTPSVC (5.0.2195.5329); Mon, 22 Mar 2004 16:57:11 +0000 Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft Exchange V6.0.6375.0 Thread-Topic: bizzare behaviour of stock tar (4.0f PK7) Thread-Index: AcQQLkr5/b0yU3p5Q3CQnwr1XcfiNgAADYpg content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: X-OriginalArrivalTime: 22 Mar 2004 16:57:11.0679 (UTC) FILETIME=[B81EE8F0:01C4102E] Xref: main.gmane.org gmane.os.tru64.managers:6669 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:6669 Does anyone know if there's a fix for the following issue :- Unpacking a tar archive but wanting to restore to an alternative location I use=20 tar sxvf sometarfile.tar=20 so leading '/'s are chopped off the files and they are restored below my current location...=20 using this or its alternative form=20 tar xPvf "/" sometarfile.tar seems to have the same effect on filename with '&' in them eg... myserver # tar tf /tmp/test.tar=20 /tmp/foo /tmp/foo/cb_isolatedl&c_h_visax /tmp/foo/cb_isolatedl&c_h_visax_no /tmp/foo/cb_isolatedl&c_v_visax /tmp/foo/cb_isolatedl&c_v_visax_no myserver # pwd /tmp/foo2 myserver # tar xvsf /tmp/test.tar=20 blocksize =3D 20 x tmp/foo x tmp/foo/cb_isolatedl/c_h_visax, 243 bytes, 1 tape blocks x tmp/foo/cb_isolatedl/c_h_visax_no, 352 bytes, 1 tape blocks x tmp/foo/cb_isolatedl/c_v_visax, 239 bytes, 1 tape blocks x tmp/foo/cb_isolatedl/c_v_visax_no, 348 bytes, 1 tape blocks is there a fix or flag to resolve this? It works as expected when unpacking without using 's' or 'P' options with tar thanks all. Adam Bentley Unix Administrator Powergen UK. ___________________________ Disclaimer Notice __________________________ This message and any attachments are confidential and should only be read by those to whom they are addressed. If you are not the intended recipient,= please contact us, delete the message from your computer and destroy any= copies. Any distribution or copying without our prior permission is Prohibited. =20 Internet communications are not always secure and therefore the Powergen=20 Group does not accept legal responsibility for this message. The recipient= is responsible for verifying its authenticity before acting on the=20 contents. Any views or opinions presented are solely those of the author=20 and do not necessarily represent those of the Powergen Group.=20 Registered addresses: =20 East Midlands Electricity Distribution plc, Westwood Way, Westwood Business Park, Coventry, CV4 8LG Registered in England & Wales No. 2366923.