aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-08-24 20:00:44 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-08-24 20:00:44 +0000
commit79bf77b333271b95cce386d7f3d05622153c4528 (patch)
treeda3228bfa2f973100799ac1070ec3cfb33d9145a
parentd16ebb5aa9a119f7e592f4c556f78130182a4644 (diff)
downloadbusybox-w32-79bf77b333271b95cce386d7f3d05622153c4528.tar.gz
busybox-w32-79bf77b333271b95cce386d7f3d05622153c4528.tar.bz2
busybox-w32-79bf77b333271b95cce386d7f3d05622153c4528.zip
Antti Seppala (with dots over the last two a's) wants our getty to initialize
the terminal the way mingetty does instead of the way agetty does. It's a bit ugly for somebody else to be writing to a console sitting at a login: prompt, but it's uglier when newline doesn't work as expected if they do. git-svn-id: svn://busybox.net/trunk/busybox@15984 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--loginutils/getty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/loginutils/getty.c b/loginutils/getty.c
index ebb107d4b..3da7c560a 100644
--- a/loginutils/getty.c
+++ b/loginutils/getty.c
@@ -474,7 +474,8 @@ static void termio_init(struct termio *tp, int speed, struct options *op)
474 tp->c_cflag |= CLOCAL; 474 tp->c_cflag |= CLOCAL;
475 } 475 }
476 476
477 tp->c_iflag = tp->c_lflag = tp->c_oflag = tp->c_line = 0; 477 tp->c_iflag = tp->c_lflag = tp->c_line = 0;
478 tp->c_oflag = OPOST | ONLCR;
478 tp->c_cc[VMIN] = 1; 479 tp->c_cc[VMIN] = 1;
479 tp->c_cc[VTIME] = 0; 480 tp->c_cc[VTIME] = 0;
480 481