summaryrefslogtreecommitdiff
path: root/libexec/getty
diff options
context:
space:
mode:
authorSebastian Benoit <benno@cvs.openbsd.org>2013-06-04 22:23:19 +0000
committerSebastian Benoit <benno@cvs.openbsd.org>2013-06-04 22:23:19 +0000
commitd459286eee21b41c58ddedd65a170ca4a989083c (patch)
tree5d7434b6a2cee161fda713872e0a79fbaead58d1 /libexec/getty
parent032137ff774110fadd739c09e517fcdf5eb6d1f7 (diff)
do not go into upper to lower case translation mode when a all-caps
username has been entered. ok deraadt@
Diffstat (limited to 'libexec/getty')
-rw-r--r--libexec/getty/main.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/libexec/getty/main.c b/libexec/getty/main.c
index 9ad71b01710..25ea83d4d8e 100644
--- a/libexec/getty/main.c
+++ b/libexec/getty/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.30 2009/10/27 23:59:31 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.31 2013/06/04 22:23:18 benno Exp $ */
/*-
* Copyright (c) 1980, 1993
@@ -293,7 +293,7 @@ main(int argc, char *argv[])
tmode.c_iflag |= ICRNL;
tmode.c_oflag |= ONLCR;
}
- if (upper || UC) {
+ if (UC) {
tmode.c_iflag |= IUCLC;
tmode.c_oflag |= OLCUC;
tmode.c_lflag |= XCASE;
@@ -437,10 +437,6 @@ getname(void)
*np = 0;
if (c == '\r')
crmod = 1;
- if (upper && !lower && !LC || UC)
- for (np = name; *np; np++)
- if (isupper(*np))
- *np = tolower(*np);
return (1 + ppp_connection);
}