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 10:21:15 -0700 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <00bc01c41032$14993290$0d8cfda7@rfets.gov> 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 1079976118 29561 80.91.224.253 (22 Mar 2004 17:21:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Mar 2004 17:21:58 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Mon Mar 22 18:21:50 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 1B5T7W-0001yj-00 for ; Mon, 22 Mar 2004 18:21:50 +0100 Original-Received: (qmail 11688 invoked by uid 5); 22 Mar 2004 17:21:32 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 11673 invoked by uid 49493); 22 Mar 2004 17:21:32 -0000 Original-Received: from tru64-unix-managers-owner@ornl.gov 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.889855 secs); 22 Mar 2004 17:21:32 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 22 Mar 2004 17:21:31 -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 <0HUZ0024KMVO1N@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 22 Mar 2004 12:21:30 -0500 (EST) Original-Received: from rfgate-qfe0.rfets.gov (rfgate.rfets.gov [167.253.11.253]) by emroute1.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HUZ0026FMVG26@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 22 Mar 2004 12:21:17 -0500 (EST) Original-Received: from exchsrv2.rfets.gov by rfgate-qfe0.rfets.gov via smtpd (for emroute1.cind.ornl.gov [160.91.4.119]) with ESMTP; Mon, 22 Mar 2004 10:21:16 -0700 Original-Received: from mail pickup service by exchsrv2.rfets.gov with Microsoft SMTPSVC; Mon, 22 Mar 2004 10:21:15 -0700 Original-Received: from rfgate.rfets.gov ([167.253.16.254]) by exchsrv2.rfets.gov with Microsoft SMTPSVC(5.0.2195.6713); Mon, 22 Mar 2004 09:57:25 -0700 Original-Received: from sws1.ornl.gov ([160.91.1.101]) by rfgate.rfets.gov via smtpd (for exchsrv2.rfets.gov [167.253.140.13]) with ESMTP; Mon, 22 Mar 2004 09:57:25 -0700 Original-Received: (qmail 14152 invoked by uid 5); Mon, 22 Mar 2004 16:57:22 +0000 Original-Received: (qmail 14137 invoked by uid 49493); Mon, 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); Mon, 22 Mar 2004 16:57:21 +0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; Mon, 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 MimeOLE V6.00.2800.1165 X-Mailer: Microsoft CDO for Exchange 2000 Importance: normal Priority: normal Thread-Topic: bizzare behaviour of stock tar (4.0f PK7) thread-index: AcQQLkr5/b0yU3p5Q3CQnwr1XcfiNgAADYpg Content-Class: urn:content-classes:message X-XSP-Quarantine-Release-Rewrite: 1 X-XSP-Quarantine-Release: 1 X-XSP-Original-To: tru64-unix-managers@ornl.gov X-XSP-Original-Recipients: SMTP:William.Skulley@rfets.gov X-MS-Has-Attach: X-MS-TNEF-Correlator: Original-Followup-to: poster X-OriginalArrivalTime: 22 Mar 2004 16:57:11.0679 (UTC) FILETIME=[B81EE8F0:01C4102E] Xref: main.gmane.org gmane.os.tru64.managers:6670 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:6670 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.