summaryrefslogtreecommitdiff
path: root/usr.sbin/pppd
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-11-14 00:16:15 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-11-14 00:16:15 +0000
commit142716f9ecd84b5d73af804d20cc15f9b67ca3f7 (patch)
tree78a8d1c9c9a1f31ab2e014198e42745c82aedb7e /usr.sbin/pppd
parent0e0bfcc4c26376bfb3f3462a0abdebe8bb51d852 (diff)
clear CLOCAL if modem is set but modem_chat is not.
Diffstat (limited to 'usr.sbin/pppd')
-rw-r--r--usr.sbin/pppd/main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/pppd/main.c b/usr.sbin/pppd/main.c
index 717991a60c6..16fb43056ca 100644
--- a/usr.sbin/pppd/main.c
+++ b/usr.sbin/pppd/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.19 1997/10/25 05:09:56 millert Exp $ */
+/* $OpenBSD: main.c,v 1.20 1997/11/14 00:16:14 millert Exp $ */
/*
* main.c - Point-to-Point Protocol main module
@@ -20,7 +20,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: main.c,v 1.19 1997/10/25 05:09:56 millert Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.20 1997/11/14 00:16:14 millert Exp $";
#endif
#include <stdio.h>
@@ -479,6 +479,10 @@ main(argc, argv)
sleep(1); /* give it time to set up its terminal */
}
+ /* clear CLOCAL if modem option set and we set CLOCAL above */
+ if (modem && !modem_chat)
+ set_up_tty(ttyfd, 0);
+
/* reopen tty if necessary to wait for carrier */
if (connector == NULL && modem) {
while ((i = open(devnam, O_RDWR)) < 0) {