Subject: getty_ps 2.0.7 bug fix [ ATTN: Moderator ]
From: [email-masked] (Kris Gleason)
Date: Wed, 21 Apr 1993 05:26:38 GMT
Newsgroups: comp.os.linux.announce

[ 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
-- 
[email-masked]
  HARDWARE (noun):  The equipment that makes up a 
  computer system, not to be confused with software