Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site mnetor.UUCP Path: utzoo!utcs!mnetor!clewis From: clewis@mnetor.UUCP (Chris Lewis) Newsgroups: net.news.adm,net.news.sa Subject: Notes on uu[hosts|mail] install (was: all-time worst path?) Message-ID: <3449@mnetor.UUCP> Date: Thu, 29-May-86 09:59:39 EDT Article-I.D.: mnetor.3449 Posted: Thu May 29 09:59:39 1986 Date-Received: Thu, 29-May-86 17:59:28 EDT References: <3148@decwrl.DEC.COM> <185@comp.lancs.ac.uk> <220@desint.UUCP> Reply-To: clewis@mnetor.UUCP (Chris Lewis) Organization: Computer X (CANADA) Ltd., Toronto, Ontario, Canada Lines: 106 Xref: utcs net.news.adm:746 net.news.sa:316 Summary: I just installed and tied together uuhosts/uumail/pathalias, and thought I'd throw my two cents worth in In article <220@desint.UUCP> geoff@desint.UUCP (Geoff Kuenning) writes: >In article <185@comp.lancs.ac.uk> stephen@comp.lancs.ac.uk >(Stephen J. Muir) writes: > >> Then you're running an outdated pathalias. The latest version is given the >> list of map files (so it knows which file each site was in). This way, it >> can differentiate between multiple hosts with the same name. > >What a kludge! I suspect there are a lot of sites out there that, for >one reason or another, are forced to feed the maps to pathalias on standard >input. For example, I don't have enough free space to change my current > > zcat u.*.Z | pathalias How does this work now that: a) some of the u.* file names are 13 or 14 chars long and compress refuses to compress them? b) 4.0 "zcat" refuses to handle uncompressed files (so zcat u.* won't work either given (a)) (we're running 4.0 compress, 1.69 uuhosts and 3.0 uumail all compiled in the Berkeley universe on our Pyramid - they are the latest aren't they? They are all the latest ones I've seen on mod.sources) I went to all of the trouble of converting uuhosts and my pathalias script to do something like: for i in u.* do f=`basename $i .Z` if [ -r $f ] then cat $f else zcat $f fi done | ... But, then I saw quite a few errors coming out from pathalias and I wanted to find out precisely where they were. [somebody oughta fix u.usa.ca.1 and 2 - there are quite a few syntax errors plus lots of alias redeclarations, and for some reason "#NOTE: 0)" got parsed by pathalias as a site called "0)"! Does anybody know what these mean? Did anybody else get them?: /usr/local/lib/pathalias: internal error on private host cs-pacx /usr/local/lib/pathalias: internal error on private host cs-ether The "0)" site and internal errors may very well be a porting problem. Aren't the map files run thru pathalias before posting?] Fortunately we have enough space to create a directory and uncompress: >into > > uncompress u.*.Z; pathalias u.*; compress -f u.* we use: MAPS=/usr/spool/maps cp u.* $MAPS/tmp; cd $MAPS/tmp; pathalias u.*...; rm -f u.* Other things: 1) uumail's "address.c" has a VAXism - "int uswitch" in the main function should be initialized to 0 (eg: "int uswitch = 0;" - VAX's tend to initialize locals as zero. On a Pyramid it's garbage ("address" would call opath correctly about 25% of the time and oupath the rest with the same input) [We're running "class 3" by the way] 2) uumail's uuconf.h has: #define NAMESIZ 32 /* system name size */ #define NEIGHBORS BUFSIZ/NAMESIZ NEIGHBORS is used in the getpath.c declaration: char neighbors[NEIGHBORS][NAMESIZ]; This is used to contain the names of the adjacent sites (sites mentioned in L.sys). Well, we have 71 L.sys entries and BUFSIZ/NAMESIZ is 64. Nor is there a check in getpath.c for overflow... BOOM! I changed the NEIGHBORS define to: #define NEIGHBORS BUFSIZ*2/NAMESIZ And added a check for overflow. 3) Somebody oughta reparagraph uumail 3.0 (ugh!). 4) I had to heavily modify uuhosts to work with the new naming conventions with COMPRESS turned on (see above) After fixing these it appears to work reasonably well. Is there going to be a new uuhosts distribution for the new naming convention? -- Chris Lewis, {pyramid|watmath|utcsri|decvax|allegra|linus|ihnp4}!utzoo! {utcsri|cbosgd}!utcs! {yetti|lsuc|genat|mot|oakhill}! ... mnetor!clewis BELL: (416)-475-8980 ext. 321