From: gleasokr@rintintin.Colorado.EDU (Kris Gleason) Subject: getty_ps2.0.7b ... new release Date: Wed, 21 Apr 1993 01:10:04 GMT
Ok. I _think_ it's right this time. Special thanks to all
of the people that sent me such fast fixes for my mistakes.
Anyways, the complete source and binaries (compiled with libc
2.3.3) are now available at sunsite.unc.edu and tsx-11.mit.edu
(they're still in incoming, but will soon be in their respective
homes).
If you already have the 2.0.7 package, the changes are small;
I have included the diffs below. These are against the virgin
2.0.7 source, so undo any other diffs you might have before
applying these.
One final note: it was pointed out that the defaults files
for ringback and waitfor have the INIT= line set to autoanswer.
Please change the S0=1 to S0=0 on that line if you use these
files (this has been fixed in 2.0.7b).
Thanks again to the brave souls who helped get this turned around
in two days.
Kris
Enclosed File: getty_ps2.0.7b.diff
BEGIN-----------8<---------CUT HERE---------8<---------------
*** ../tmp/getty_ps/main.c Sat Apr 17 14:27:33 1993
--- main.c Tue Apr 20 10:51:44 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
***************
*** 459,466 ****
1, fp);
(void) fclose(fp);
}
- endutent();
}
}
#endif /* LOGUTMP */
--- 460,467 ----
1, fp);
(void) fclose(fp);
}
}
+ endutent();
}
#endif /* LOGUTMP */
***************
*** 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");
--- 500,507 ----
*/
if((init) || (waitchar)) {
! debug3(D_RUN, "opening init line: %s\n", initdevname);
! while(((fd = open(initdevname, O_RDWR | O_NDELAY)) < 0) &&
(errno == EBUSY)) sleep(30);
if(fd < 0) {
logerr("cannot open init line");
***************
*** 692,697 ****
--- 694,701 ----
debug2(D_SCH, (allow ? "not sleeping\n" : "sleeping\n"));
while(! allow) pause();
#endif /* SCHED */
+
+ debug3(D_RUN, "opening line: %s\n", devname);
if((fd = open(devname, (waitfor) ?
(O_RDWR | O_NDELAY) : (O_RDWR))) < 0) {
END-------------8<---------CUT HERE---------8<---------------
-- gleasokr@rintintin.colorado.edu HARDWARE (noun): The equipment that makes up a computer system, not to be confused with software