]> git.ozlabs.org Git - ppp.git/commitdiff
fix silly mistake in setting up pty
authorPaul Mackerras <paulus@samba.org>
Mon, 1 Jan 2001 23:43:25 +0000 (23:43 +0000)
committerPaul Mackerras <paulus@samba.org>
Mon, 1 Jan 2001 23:43:25 +0000 (23:43 +0000)
pppd/sys-linux.c

index fbad8473afbd822c1142c6bdfef07c36c2a165fe..4d24a5c24c9b582e33b6f6d6a3f75d99b1c780a9 100644 (file)
@@ -2481,8 +2481,8 @@ get_pty(master_fdp, slave_fdp, slave_name, uid)
     *slave_fdp = sfd;
     if (tcgetattr(sfd, &tios) == 0) {
        tios.c_cflag &= ~(CSIZE | CSTOPB | PARENB);
-       tios.c_cflag |= CS8 | CREAD;
-       tios.c_iflag  = IGNPAR | CLOCAL;
+       tios.c_cflag |= CS8 | CREAD | CLOCAL;
+       tios.c_iflag  = IGNPAR;
        tios.c_oflag  = 0;
        tios.c_lflag  = 0;
        if (tcsetattr(sfd, TCSAFLUSH, &tios) < 0)