X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fsys-str.c;h=2dc7e968928f1571a216a2867d58c92ecfd03281;hb=4fa785250fb081e149567d504f7eae5a2fc410bb;hp=aed7c8ee47d96844e719a04c9116da883094a4ee;hpb=3fc0348f0ba4f38c5aecd96b7dccef4684bd53aa;p=ppp.git diff --git a/pppd/sys-str.c b/pppd/sys-str.c index aed7c8e..2dc7e96 100644 --- a/pppd/sys-str.c +++ b/pppd/sys-str.c @@ -19,7 +19,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: sys-str.c,v 1.12 1994/09/16 02:18:01 paulus Exp $"; +static char rcsid[] = "$Id: sys-str.c,v 1.13 1994/09/16 02:35:42 paulus Exp $"; #endif /* @@ -387,9 +387,11 @@ set_up_tty(fd, local) if (!restore_term) inittermios = tios; - tios.c_cflag &= ~(CSIZE | CSTOPB | PARENB | CLOCAL | CRTSCTS); - if (crtscts == 1) + tios.c_cflag &= ~(CSIZE | CSTOPB | PARENB | CLOCAL); + if (crtscts > 0) tios.c_cflag |= CRTSCTS; + else if (crtscts < 0) + tios.c_cflag &= ~CRTSCTS; tios.c_cflag |= CS8 | CREAD | HUPCL; if (local || !modem)