summaryrefslogtreecommitdiff
path: root/login-utils
diff options
context:
space:
mode:
Diffstat (limited to 'login-utils')
-rw-r--r--login-utils/agetty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/login-utils/agetty.c b/login-utils/agetty.c
index 9fc389b8..25419481 100644
--- a/login-utils/agetty.c
+++ b/login-utils/agetty.c
@@ -709,7 +709,7 @@ termio_init(tp, op)
/* flush input and output queues, important for modems! */
(void) tcflush(0, TCIOFLUSH);
- tp->c_cflag = CS8 | HUPCL | CREAD;
+ tp->c_cflag = CS8 | HUPCL | CREAD | (tp->c_cflag & CLOCAL);
if (!(op->flags & F_KEEPSPEED)) {
cfsetispeed(tp, op->speeds[FIRST_SPEED]);