mirror of
https://github.com/troglobit/finit.git
synced 2026-10-18 10:59:34 +00:00
getty: max username is 32 chars, according to useradd(1)
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
1351b708fe
commit
5f3958fab4
1 file changed
+1
-1
+1
-1
@@ -204,7 +204,7 @@ static int do_login(char *name)
|
||||
int getty(char *tty, speed_t speed, char *term, char *user)
|
||||
{
|
||||
const char cln[] = "\r\e[2K\n";
|
||||
char name[30];
|
||||
char name[33]; /* useradd(1) limit at 32 chars */
|
||||
|
||||
/*
|
||||
* Clean up tty name.
|
||||
|
||||
Reference in new issue
Block a user