Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!elroy.jpl.nasa.gov!sdd.hp.com!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!midway!gargoyle!igloo!ddsw1!olsa99!tabbs!aris From: aris@tabbs.UUCP (Aris Stathakis) Newsgroups: comp.unix.xenix.sco Subject: Re: ECU v3.0pl9 on Xenix/286 v2.2.3 Message-ID: <1991Feb17.180906.5158@tabbs.UUCP> Date: 17 Feb 91 18:09:06 GMT References: <1991Feb13.101328.1107@mudos.ann-arbor.mi.us> Organization: TABBS - Totally Awesome BBS Lines: 34 In <1991Feb13.101328.1107@mudos.ann-arbor.mi.us> mju@mudos.ann-arbor.mi.us (Marc Unangst) writes: >I recently obtained the sources for ECU v3.0 from the uunet archive >and attempted to compile them on my Xenix/286 system. Since the code >claimed to support Xenix, I thought it would be a piece of cake... >Well, sort of. ECU compiled okay, and it seems to be functional, but >I can't get it to connect to a tty port. When I tell it to use >/dev/tty2a at 9600bps (the port my T2500 is on), it tells me that >"another dialout is on the line", and then counts down from 10 seconds. >When it gets to zero, it tells me to use another port. The problem seems to be in the code. I had the same problem under xenix/386. Here is how to fix: ----------- line 108 of utmpstat.c ------------------------- if(!strcmp(namecopy,"LOGIN")) status = US_LOGIN; else if(!strcmp(namecopy,"DIALOUT")) status = US_DIALOUT; else if((!strcmp(namecopy,"uugetty") || !strcmp(namecopy,"getty"))) ----------- line 114 of utmpstat.c ------------------------- The "status =" lines seem to have been reversed for some reason. This is what it should have looked like. Sorry I didn't make diffs, but i was too lazy :-) Aris -- Aris Stathakis | Bang: ..!uunet!ddsw1!olsa99!tabbs!aris or aris@tabbs.UUCP - UNIX is like pickled herring - Nobody thinks it's any good - - Until they've tried it! -