Xref: utzoo comp.sources.d:1916 comp.sources.bugs:891 Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!pasteur!ucbvax!bloom-beacon!athena.mit.edu!eichin From: eichin@athena.mit.edu (Mark W. Eichin) Newsgroups: comp.sources.d,comp.sources.bugs Subject: Re: bsd version of arc Message-ID: <4385@bloom-beacon.MIT.EDU> Date: 6 Apr 88 10:02:00 GMT References: <4395@b-tech.UUCP> Sender: daemon@bloom-beacon.MIT.EDU Reply-To: eichin@athena.mit.edu (Mark W. Eichin) Organization: Multiple Instances of Timidity Lines: 61 Summary: Latest version? Naahh... In article <4395@b-tech.UUCP> zeeff@b-tech.UUCP (Jon Zeeff) writes: >Subject: bsd version of arc >Newsgroups: comp.sources.d > >After running lint on this thing, I find it amazing that it works for >anyone. Does anyone have diffs for a lint free version or a version >with the bugs removed? (yes, some nasty ones did turn up) > >--Jon > >Moral of the story: "lint *.c" isn't hard to do. Always use it on >any code you work on. >-- >Jon Zeeff Branch Technology, >uunet!umix!b-tech!zeeff zeeff%b-tech.uucp@umix.cc.umich.edu I built it here (vax 4.3bsd) and tried un-arc'ing something I had been sent, and had it barf with "Stack Overflow" and other errors. It would also produce total garbage for some of the files. On following up another announcement, and finally being able to get through to IUVAX.CS.INDIANA.EDU, I ftp'd their version. It is definitely newer, although most of the work is adding a `squash' module. The diffs that DIDN'T deal with squash mode follow: diff -r ARC/arclzw.c IUarc/arclzw.c 109c109 < #if MSODS --- > #if MSDOS 565c565,566 < local = (pred + foll) | 0x0800; /* create the hash key */ --- > local = ((pred + foll) | 0x0800) & 0xffff; /* create the hash key */ > /*local = (pred + foll) | 0x0800; /* create the hash key */ 574c575,576 < return ((pred+foll)*15073)&0xFFF; /* faster hash */ --- > return (((pred+foll)&0xffff)*15073)&0xFFF; /* faster hash */ > /*return ((pred+foll)*15073)&0xFFF; /* faster hash */ diff -r ARC/arcm.h IUarc/arcm.h 25c25 < #define ARCVER 8 /* archive header version code */ --- > #define ARCVER 9 /* archive header version code */ This version still hangs in certain parts of the archive I was attacking, but now only gets stuck on one file. Someone who wants to seriously hunt this down can ask me, but effort would be better spent in finding a more recent version of ARC to post! I don't know who at indiana it was, but the scrap of posting I still have follows: > Someone ported the actual PC Arc program to Unix and posted it last year. >We have a copy of the source here. You can ftp it from pub/arc/* at >iuvax.cs.indiana.edu. Mark Eichin SIPB Member & Project Athena ``Watchmaker''