From: Dennis Jensen Date: Thu, 24 Nov 2011 17:55:57 +0000 (+0100) Subject: agetty: map NL to CR-NL on output in initial termiossettings X-Git-Tag: v2.21-rc1~156 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9c62a2326e6e39a5e759830b0b9d91696166fb45;p=thirdparty%2Futil-linux.git agetty: map NL to CR-NL on output in initial termiossettings From: Jacoby Hickerson Signed-off-by: Dennis Jensen --- diff --git a/term-utils/agetty.c b/term-utils/agetty.c index 041e1f7a6d..079a737f98 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -1091,7 +1091,8 @@ static void termio_init(struct options *op, struct termios *tp) #else tp->c_iflag = 0; #endif - tp->c_lflag = tp->c_oflag = 0; + tp->c_lflag = 0; + tp->c_oflag &= OPOST | ONLCR; if ((op->flags & F_KEEPCFLAGS) == 0) tp->c_cflag = CS8 | HUPCL | CREAD | (tp->c_cflag & CLOCAL);