1
0
Fork 0

Updating login prompt.

Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
This commit is contained in:
Daniel Baumann 2025-06-22 09:00:20 +02:00
parent add9e8a1ed
commit 063369fad4
Signed by: daniel.baumann
GPG key ID: BCC918A2ABD66424
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,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
@@ -857,13 +857,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 = NULL, *dflt_prompt = _("login: ");
+ char *prompt = NULL, *dflt_prompt = _("Login: ");
if (cxt->nohost)
return dflt_prompt; /* -H on command line */
@@ -916,7 +916,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));

View file

@ -28,3 +28,4 @@ upstream-stable/cfdisk-fix-memory-leak-and-possible-NULL-dereference-gcc-.patch
upstream-stable/treewide-fix-optional-arguments-usage.patch
upstream-stable/findmnt-fix-k-option-parsing-regression.patch
progress-linux/0001-agetty-prompt.patch
progress-linux/0002-login-prompt.patch