login_prompt is the name of a function, use loginprompt for the internal variable.
This commit is contained in:
parent
239b2d7bee
commit
f11bbd3b70
@ -21,6 +21,8 @@
|
||||
OK as long as prototypes.h included this file.)
|
||||
* src/nologin.c: Make a proper prototype for the main() function
|
||||
declaration. (add void)
|
||||
* src/login.c: login_prompt is the name of a function, use
|
||||
loginprompt for the internal variable.
|
||||
|
||||
2008-01-01 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
|
12
src/login.c
12
src/login.c
@ -608,19 +608,19 @@ int main (int argc, char **argv)
|
||||
if (!fflg || (getuid () != 0)) {
|
||||
int failcount = 0;
|
||||
char hostn[256];
|
||||
char login_prompt[256]; /* That's one hell of a prompt :) */
|
||||
char loginprompt[256]; /* That's one hell of a prompt :) */
|
||||
|
||||
/* Make the login prompt look like we want it */
|
||||
if (!gethostname (hostn, sizeof (hostn)))
|
||||
snprintf (login_prompt,
|
||||
sizeof (login_prompt),
|
||||
snprintf (loginprompt,
|
||||
sizeof (loginprompt),
|
||||
_("%s login: "), hostn);
|
||||
else
|
||||
snprintf (login_prompt,
|
||||
sizeof (login_prompt), _("login: "));
|
||||
snprintf (loginprompt,
|
||||
sizeof (loginprompt), _("login: "));
|
||||
|
||||
retcode =
|
||||
pam_set_item (pamh, PAM_USER_PROMPT, login_prompt);
|
||||
pam_set_item (pamh, PAM_USER_PROMPT, loginprompt);
|
||||
PAM_FAIL_CHECK;
|
||||
|
||||
/* if we didn't get a user on the command line,
|
||||
|
Loading…
Reference in New Issue
Block a user