From 74f3a3f5c86d56fa33d2dfc9aae6fca3ba712e6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Mon, 12 Dec 2016 22:28:58 +0100 Subject: [PATCH] Actually disable modem specific flags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Walström Signed-off-by: Joachim Nilsson --- getty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getty.c b/getty.c index cfff72a7..f5fe17a2 100644 --- a/getty.c +++ b/getty.c @@ -77,7 +77,7 @@ static void stty(int fd, speed_t speed) tcflush(fd, TCIOFLUSH); /* Disable modem specific flags */ - term.c_cflag &= (0|CSTOPB|PARENB|PARODD); + term.c_cflag &= ~(0|CSTOPB|PARENB|PARODD); term.c_cflag &= ~CRTSCTS; term.c_cflag |= CLOCAL;