summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1997-11-14 00:16:14 +0000
committermillert <millert@openbsd.org>1997-11-14 00:16:14 +0000
commitbe6ca99fd9c72daf0dda2442ae62e550b02b8fd0 (patch)
tree9f225ec41e402ea86bbe5a2ee9ff62acb9d17186
parentAdd missing .TP (diff)
downloadwireguard-openbsd-be6ca99fd9c72daf0dda2442ae62e550b02b8fd0.tar.xz
wireguard-openbsd-be6ca99fd9c72daf0dda2442ae62e550b02b8fd0.zip
clear CLOCAL if modem is set but modem_chat is not.
-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) {