From: Alan Cox Date: Sun, 2 Sep 2018 13:24:47 +0000 (+0100) Subject: init: reprompt login: if blank user name X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=ab31c537196c9eaea09e1021cfc153b051193784;p=FUZIX.git init: reprompt login: if blank user name --- diff --git a/Applications/util/init.c b/Applications/util/init.c index 70640c98..cf4a5525 100644 --- a/Applications/util/init.c +++ b/Applications/util/init.c @@ -837,6 +837,9 @@ static pid_t getty(const char **argv, const char *id) if ((p = strchr(buf, '\n')) != NULL) *p = '\0'; /* strip newline */ + if (*buf == 0) + continue; + pwd = getpwnam(buf); if (pwd == NULL || *pwd->pw_passwd)