]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
agetty: map NL to CR-NL on output in initial termiossettings
authorDennis Jensen <dennis.h.jensen@siemens.com>
Thu, 24 Nov 2011 17:55:57 +0000 (18:55 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 28 Nov 2011 09:34:39 +0000 (10:34 +0100)
From: Jacoby Hickerson <hickersonjl@gmail.com>
Signed-off-by: Dennis Jensen <dennis.h.jensen@siemens.com>
term-utils/agetty.c

index 041e1f7a6d04149cd8e1e2ab065bc7a5c9c82d96..079a737f980d630f222200b0709744328ca70cc3 100644 (file)
@@ -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);