summaryrefslogtreecommitdiffstats
path: root/login-utils/agetty.c
diff options
context:
space:
mode:
authorAurelien Jarno2009-04-22 09:34:10 +0200
committerKarel Zak2009-04-23 15:43:42 +0200
commitee5190416921537b9747bdbdad496b11d737bd81 (patch)
treefb753c2624c10adce22e2aa2b14a710b3dbad9ed /login-utils/agetty.c
parentlosetup: mount endless loop hang (diff)
downloadkernel-qcow2-util-linux-ee5190416921537b9747bdbdad496b11d737bd81.tar.gz
kernel-qcow2-util-linux-ee5190416921537b9747bdbdad496b11d737bd81.tar.xz
kernel-qcow2-util-linux-ee5190416921537b9747bdbdad496b11d737bd81.zip
agetty: IUCLC and OLCUC are Linux extensions
IUCLC and OLCUC are Linux extensions to termios. The same way it is already done for XCASE, they can be ignored if not supported. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'login-utils/agetty.c')
-rw-r--r--login-utils/agetty.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/login-utils/agetty.c b/login-utils/agetty.c
index 29ce14990..90a64b33b 100644
--- a/login-utils/agetty.c
+++ b/login-utils/agetty.c
@@ -1146,11 +1146,15 @@ termio_final(op, tp, cp)
/* Account for upper case without lower case. */
if (cp->capslock) {
+#ifdef IUCLC
tp->c_iflag |= IUCLC;
+#endif
#ifdef XCASE
tp->c_lflag |= XCASE;
#endif
+#ifdef OLCUC
tp->c_oflag |= OLCUC;
+#endif
}
/* Optionally enable hardware flow control */