blob: fcf2068a6af62e7945396304ea5e328cf1c40b2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
Author: Daniel Baumann <daniel.baumann@progress-linux.org>
Description: Setting login prompt to 'Login: '.
diff -Naurp util-linux.orig/login-utils/login.c util-linux/login-utils/login.c
--- util-linux.orig/login-utils/login.c
+++ util-linux/login-utils/login.c
@@ -679,13 +679,13 @@ static void loginpam_err(pam_handle_t *p
}
/*
- * Composes "<host> login: " string; or returns "login: " if -H is given or
+ * Composes "<host> Login: " string; or returns "Login: " if -H is given or
* LOGIN_PLAIN_PROMPT=yes configured.
*/
static const char *loginpam_get_prompt(struct login_context *cxt)
{
const char *host;
- char *prompt, *dflt_prompt = _("login: ");
+ char *prompt, *dflt_prompt = _("Login: ");
size_t sz;
if (cxt->nohost)
@@ -734,7 +734,7 @@ static pam_handle_t *init_loginpam(struc
/*
* Andrew.Taylor@cal.montage.ca: Provide a user prompt to PAM so that
- * the "login: " prompt gets localized. Unfortunately, PAM doesn't have
+ * the "Login: " prompt gets localized. Unfortunately, PAM doesn't have
* an interface to specify the "Password: " string (yet).
*/
rc = pam_set_item(pamh, PAM_USER_PROMPT, loginpam_get_prompt(cxt));
|