public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7244f52
)
init: reprompt login: if blank user name
author
Alan Cox
<alan@linux.intel.com>
Sun, 2 Sep 2018 13:24:47 +0000
(14:24 +0100)
committer
Alan Cox
<alan@linux.intel.com>
Sun, 2 Sep 2018 13:24:47 +0000
(14:24 +0100)
Applications/util/init.c
patch
|
blob
|
history
diff --git
a/Applications/util/init.c
b/Applications/util/init.c
index
70640c9
..
cf4a552
100644
(file)
--- 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)