38c50f39a0
The first problem I found was that descriptor 0 was being closed. This happens because the modem variable is set to 0 to indicate that it is not valid but there are not enough tests for the modem variable being 0. You can see where I have done this in the patch. Code in OpenModem() dups the modem descriptor if it is < 3. Once this happened the modem was always open and an incomming call would have getty and ppp reading the modem. Descriptor 1 is closed when the quit command was executed from a telnet connection. The next modem open returns descriptor 1 and this gets duped leaving the modem always open again. The modem was not being closed when the connection dropped or was closed from the other end. The UUCP lock was also not removed if the modem could not be opened. Reviewed by: Atsushi Murai <amurai@spec.co.jp> Submitted by: John Capo <jc@irbs.com> |
||
---|---|---|
.. | ||
XNSrouted | ||
ac | ||
accton | ||
adduser | ||
amd | ||
apm | ||
apmconf | ||
arp | ||
bad144 | ||
bootparamd | ||
bootpd | ||
bootpef | ||
bootpgw | ||
bootptest | ||
cdplay | ||
chown | ||
chroot | ||
config | ||
config.new | ||
cron | ||
crunch | ||
ctm | ||
dbsym | ||
dev_mkdb | ||
diskpart | ||
edquota | ||
eeprom | ||
fdcontrol | ||
fdformat | ||
fdwrite | ||
inetd | ||
iostat | ||
kbdcontrol | ||
kbdmap | ||
kernbb | ||
kgmon | ||
kvm_mkdb | ||
lpr | ||
lptcontrol | ||
lsdev | ||
manctl | ||
mixer | ||
mount_portalfs | ||
mountd | ||
mrouted | ||
mtree | ||
named | ||
ncrcontrol | ||
nfsd | ||
nologin | ||
nslookup | ||
pcvt | ||
pkg_install | ||
pkg_manage | ||
portmap | ||
ppp | ||
pppd | ||
pppstats | ||
pstat | ||
pwd_mkdb | ||
quot | ||
quotaon | ||
rarpd | ||
repquota | ||
rmt | ||
routed | ||
rtprio | ||
rwhod | ||
sa | ||
sendmail | ||
sgsc | ||
sliplogin | ||
slstat | ||
spkrtest | ||
swapinfo | ||
sysctl | ||
syslogd | ||
tcpdump | ||
timed | ||
traceroute | ||
trpt | ||
trsp | ||
tzsetup | ||
update | ||
vidcontrol | ||
vipw | ||
vnconfig | ||
watch | ||
xntpd | ||
xten | ||
ypbind | ||
yppoll | ||
ypset | ||
zic | ||
Makefile | ||
Makefile.inc |