NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/33521 Strange login procedure for a user with name "_"
The following reply was made to PR bin/33521; it has been noted by GNATS.
From: dieter roelants <dieter.NetBSD%pandora.be@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: bin/33521 Strange login procedure for a user with name "_"
Date: Sun, 20 Jan 2008 18:07:27 +0100
Next patch fixes it for me:
Index: main.c
===================================================================
RCS file: /cvsroot/src/libexec/getty/main.c,v
retrieving revision 1.53
diff -u -r1.53 main.c
--- main.c 3 Dec 2007 09:54:24 -0000 1.53
+++ main.c 20 Jan 2008 17:01:21 -0000
@@ -516,7 +516,7 @@
}
if (islower(c))
lower = 1;
- else if (isupper(c))
+ else if (isupper(c) || (c == '_'))
upper = 1;
else if (c == ERASE || c == '#' || c == '\b') {
if (np > name) {
(It may look a bit weird to classify _ with the uppercase letters :)
getty doesn't accept names with no alphanumerics. The reason it works
after another failed login, is because it's no longer getty, but login
handling your login. The reason it works when you first type some other
chars and then erase them, is because getty remembers them and "thinks"
there are alphanumerics in the name.
dieter
Home |
Main Index |
Thread Index |
Old Index