home *** CD-ROM | disk | FTP | other *** search
- Submitted-by: clive@x.co.uk (Clive Feather)
-
- In article <1luic5INNqhk@ftp.UU.NET> karish@pangea.Stanford.EDU (Chuck Karish) writes:
- >There's no specific requirement that subsequent files in
- >the archive that are links to a previous file be treated
- >specially with regard to file size. This says to me that
- >the specification would expect the data in a file with
- >multiple links to be repeated in the archive, but not on
- >disk after the files are extracted from the archive.
-
- This behaviour is in cpio so that it is possible to extract any file
- without special handling. Suppose you create an archive containing three
- links:
-
- mkdir newdir
- cd newdir
- cp /some/random/file a
- ln a b
- ln a c
- ls ? | cpio -oc >archive
-
- Then it is possible to extract the file under any of its names
-
- cpio <archive -ic a
-
- or
-
- cpio <archive -ic b
-
- or
-
- cpio <archive -ic c
-
- If you handle links specially in the archive, then the first of these
- works, but the other two don't, unless cpio can back up through standard
- input, or saves all files with >1 links just in case another name
- matches the pattern.
-
- --
- Clive D.W. Feather | IXI Limited | If you lie to the compiler,
- clive@x.co.uk | Vision Park | it will get its revenge.
- Phone: +44 223 236 555 | Cambridge CB4 4RZ | - Henry Spencer
- Fax: +44 223 236 550 | United Kingdom |
-
- Volume-Number: Volume 30, Number 67
-
-