summaryrefslogtreecommitdiff
path: root/login-utils
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2010-07-12 11:57:55 +0200
committerKarel Zak <kzak@redhat.com>2010-08-18 09:38:49 +0200
commite143d1f00497f0178a1febec8fb4aa7c842fa35a (patch)
tree4682217b776baab25b567524a5f240029c0cfb6c /login-utils
parent848e5e6ce3978d921366b799d907a78a12299924 (diff)
downloadutil-linux-old-e143d1f00497f0178a1febec8fb4aa7c842fa35a.tar.gz
aggety: don't wipe CLOCAL flag
gettey should not clear the flag. It seems that the flag is automatically enabled for serial consoles tht don't use CD signal. Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=598631 Signed-off-by: Karel Zak <kzak@redhat.com>
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]);