SUMMARY: cpio Archive Portability

From: Tim Evans (tkevans@eplrx7.es.duPont.com)
Date: Mon Aug 24 1992 - 15:58:51 CDT


Last week I wrote:
>
>We're having "bad magic number" problems with cpio archives
>created under Solaris 2.0 when we try to read them under SunOS
>4.1.2. I tried yanking the cpio entries from Solaris' /etc/magic
>into the SunOS 4.1.2 /etc/magic, but this did not cure the
>problem.
>
First, thanks to those who replied (and to any who did that I've
not listed):

From: grs@claircom.com (Gregg Siegfried)
From: syd@dsinc.dsi.com (Syd Weinstein)
From: John Oleynick <juo@winterland.rutgers.edu>
From: kucharsk@anthrax.Solbourne.COM (William Kucharski)
From: guy@auspex.com (Guy Harris)
From: trinkle@cs.purdue.edu

Most everyone pointed me to the '-H' option in Solaris SVR4
cpio. (Simply using '-c' isn't enough.) Syd provided a
man page excerpt (which is not in my on-disk Solaris man pages):

An archive created with the -c option on a System V Release
4.0 system cannot be read on System V Release 3.2 systems,
or earlier. Use the -H odc option, which is equivalent to
the header created by the -c option in earlier System V
Releases, if the cpio image will be read by a pre-System V
Release 4.0 version of cpio.

John added that the next release of GNU cpio would be able to
read SVR4 cpio archives.

-- 
Tim Evans                     |    E.I. du Pont de Nemours & Co.
tkevans@eplrx7.es.dupont.com  |    Experimental Station
(302) 695-9353/7395           |    P.O. Box 80357
EVANSTK AT A1 AT ESVAX        |    Wilmington, Delaware 19880-0357



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:48 CDT