Xref: utzoo comp.sources.d:2232 comp.unix.questions:7403 Path: utzoo!utgpu!water!watmath!clyde!bellcore!rutgers!gatech!rayssd!galaxia!dave From: dave@galaxia.zone1.com (David H. Brierley) Newsgroups: comp.sources.d,comp.unix.questions Subject: Re: cpio/afio writing directories? Message-ID: <478@galaxia.zone1.com> Date: 5 Jun 88 03:23:40 GMT References: <23@libove.UUCP> <5739@chinet.UUCP> Reply-To: dave@galaxia.zone1.com (David H. Brierley) Distribution: comp Organization: Dave's Very Own Personal System Lines: 21 In article <5739@chinet.UUCP> les@chinet.UUCP (Leslie Mikesell) writes: [ much stuff deleted discussing how to use cpio] >Be sure you know what you are doing if you use (or don't use) absolute >pathnames for the starting directories. If you start with a /, then >the restore operation will only be able to put the files back into their >original absolute positions. If you cd to the starting point and find ".", >or one above and find "dirnname", then the files will restore relative >to your current directory. On my 3B1, which up until now I had assumed was using the standard SV utilities, the cpio program has an upper-case R option which is described as follows: "Allow file and directories with absolute path names to be redirected on input to the current directory by removing the leading / from the path name." Does this option exist in other version of cpio and people just dont know about it or is the 3B1 unique in this regard? -- David H. Brierley Home: dave@galaxia.zone1.com ...!rayssd!galaxia!dave Work: dhb@rayssd.ray.com {sun,decuac,cbosgd,gatech,necntc,ukma}!rayssd!dhb