mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07: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
-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