From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,208dde4e440783af X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 1993-04-20 22:52:32 PST Newsgroups: comp.os.linux.announce Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!noc.near.net!uunet!pipex!sunic!news.funet.fi!hydra!klaava!wirzeniu From: gleasokr@rintintin.Colorado.EDU (Kris Gleason) Subject: getty_ps 2.0.7 bug fix [ ATTN: Moderator ] Message-ID: <1993Apr21.052638.11166@klaava.Helsinki.FI> Followup-To: comp.os.linux Keywords: getty_ps, dial in/out Sender: wirzeniu@klaava.Helsinki.FI (Lars Wirzenius) Organization: University of Colorado, Boulder References: <1993Apr18.153527.29065@klaava.Helsinki.FI> Date: Wed, 21 Apr 1993 05:26:38 GMT [ Moderator's note: this is a correction / replacement for the earlier announcement. Ignore that one, use this one. --liw ] I have updated the getty_ps2.0.7 package to getty_ps2.0.7a. There was a stupid bug in the 2.0.7 source. Those of you who already have the source can apply the following diff to bring your code up to 2.0.7a. Enclosed File: getty_ps2.0.7a.diff BEGIN-----------8<---------CUT HERE---------8<--------------- *** main.c.orig Tue Apr 20 00:05:22 1993 --- main.c Tue Apr 20 00:05:41 1993 *************** *** 368,373 **** --- 368,374 ---- /* construct /dev/ names for the lines */ (void) sprintf(devname, "/dev/%s", Device); + if(strequal(InitDevice, "unknown")) InitDevice = Device; (void) sprintf(initdevname, "/dev/%s", InitDevice); #ifdef UUGETTY *************** *** 499,505 **** */ if((init) || (waitchar)) { ! while(((fd = open(devname, O_RDWR | O_NDELAY)) < 0) && (errno == EBUSY)) sleep(30); if(fd < 0) { logerr("cannot open init line"); --- 499,505 ---- */ if((init) || (waitchar)) { ! while(((fd = open(initdevname, O_RDWR | O_NDELAY)) < 0) && (errno == EBUSY)) sleep(30); if(fd < 0) { logerr("cannot open init line"); END-------------8<---------CUT HERE---------8<--------------- Kris -- gleasokr@rintintin.colorado.edu HARDWARE (noun): The equipment that makes up a computer system, not to be confused with software