home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / bsd / 4516 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  1.5 KB

  1. Path: sparky!uunet!auspex-gw!guy
  2. From: guy@Auspex.COM (Guy Harris)
  3. Newsgroups: comp.unix.bsd
  4. Subject: Re: Reading 386bsd dist files (bin,src,etc)
  5. Message-ID: <14185@auspex-gw.auspex.com>
  6. Date: 20 Aug 92 21:31:15 GMT
  7. References: <oa6un94@sgi.sgi.com>
  8. Sender: news@auspex-gw.auspex.com
  9. Organization: Auspex Systems, Santa Clara
  10. Lines: 19
  11. Nntp-Posting-Host: auspex.auspex.com
  12.  
  13. >I started to do the same thing, but found it much easier to simply ignore
  14. >the native cpio completely, and snarf the Net-2 cpio.c and compile & run
  15. >*that* on my cross-host (an SGI 4D/35, BigEndian like the Sun-3). The Net-2
  16. >(and 386bsd) version will run on either Endian-ness machine and extract
  17. >from archives written on either Endian-ness. [And it's faster than piping
  18. >through a converter.]
  19.  
  20. Yup; that's the code I put into the SunOS 3.2 "cpio" (when somebody
  21. who'd just joined Sun tried to read a "cpio" tape of his home directory
  22. at his previous job, which was written in non-"-c" form on a VAX, and
  23. found that somebody at AT&T's royally screwed the pooch, and rendered
  24. the byte-swapping options completely useless for reading such tapes). 
  25.  
  26. Any vendor with an SVR3-vintage "cpio" in their UNIX should pick up
  27. those changes; they include stuff to automatically figure out the byte
  28. order for non-"-c" tapes, and to support symlinks (although there's a
  29. bug in that code, and you should pick up the fix in a recent posting I
  30. made here).  (It also includes changes to keep it from printing "errno"
  31. numeric values in its error messages.)
  32.