From 6422b5897f6779fd774069d9ec6927d745ef5f1d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 16:32:21 +0200 Subject: Updating login prompt. Signed-off-by: Daniel Baumann --- .../patches/progress-linux/0002-login-prompt.patch | 31 ++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 32 insertions(+) create mode 100644 debian/patches/progress-linux/0002-login-prompt.patch (limited to 'debian/patches') diff --git a/debian/patches/progress-linux/0002-login-prompt.patch b/debian/patches/progress-linux/0002-login-prompt.patch new file mode 100644 index 0000000..fcf2068 --- /dev/null +++ b/debian/patches/progress-linux/0002-login-prompt.patch @@ -0,0 +1,31 @@ +Author: Daniel Baumann +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 " login: " string; or returns "login: " if -H is given or ++ * Composes " 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)); diff --git a/debian/patches/series b/debian/patches/series index 5257c5f..7ed1877 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -36,3 +36,4 @@ upstream/PATCH-2-2-lib-pty-minor-cleanups.patch upstream/PATCH-script-abort-if-unused-arguments-are-given.patch upstream/logger-always-update-header-when-read-from-stdin.patch progress-linux/0001-agetty-prompt.patch +progress-linux/0002-login-prompt.patch -- cgit v1.2.3