summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 02:43:17 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 02:43:17 +0000
commite9fa764f29592dc5160f24e10f96bd77b7be075f (patch)
treeb8e317ee1daaa4c2d31a40037f4166cba594dab8 /debian
parentUpdating agetty login prompt. (diff)
downloadutil-linux-e9fa764f29592dc5160f24e10f96bd77b7be075f.tar.xz
util-linux-e9fa764f29592dc5160f24e10f96bd77b7be075f.zip
Updating login prompt.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian')
-rw-r--r--debian/patches/progress-linux/0002-login-prompt.patch31
-rw-r--r--debian/patches/series1
2 files changed, 32 insertions, 0 deletions
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 <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));
diff --git a/debian/patches/series b/debian/patches/series
index d0b8ea8..4757f61 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
progress-linux/0001-agetty-prompt.patch
+progress-linux/0002-login-prompt.patch