Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site axiom.UUCP Path: utzoo!linus!axiom!smk From: smk@axiom.UUCP (Steven M. Kramer) Newsgroups: net.wanted.sources Subject: Re: AT&T's cpio running on 4.2BSD Message-ID: <23@axiom.UUCP> Date: Thu, 21-Feb-85 19:57:09 EST Article-I.D.: axiom.23 Posted: Thu Feb 21 19:57:09 1985 Date-Received: Sun, 24-Feb-85 01:08:59 EST References: <230@bgsuvax.UUCP> <770@ukma.UUCP> Organization: Axiom Technology, Newton MA Lines: 11 It almost works on 4.1-2. There are 2 problems. First, u must handle the different file types. Second, there is a variable declared as short that is used to hold the mode word. When it is checked vs. dirs on 4.2, sign extension occurs. To fix that, either make it unsigned or make it a long. I forget its name. The net effect of the bug is that the -d option doesn't work. The net effect of the fix is that the -d option works. (How profound.) -- --steve kramer {allegra,genrad,ihnp4,utzoo,philabs,uw-beaver}!linus!axiom!smk (UUCP) linus!axiom!smk@mitre-bedford (MIL)