diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 12:50:52 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 12:50:52 +0000 |
commit | 411b81ba482bbd319622d082ee0881b50ccf7e78 (patch) | |
tree | 7f06c4124d41ad54f55ac553476ec897d66f12c1 /debian/patches/progress-linux | |
parent | Updating vcs fields. (diff) | |
download | shadow-411b81ba482bbd319622d082ee0881b50ccf7e78.tar.xz shadow-411b81ba482bbd319622d082ee0881b50ccf7e78.zip |
Updating login prompt.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | debian/patches/progress-linux/0001-login-prompt.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/progress-linux/0001-login-prompt.patch b/debian/patches/progress-linux/0001-login-prompt.patch new file mode 100644 index 0000000..1bca41c --- /dev/null +++ b/debian/patches/progress-linux/0001-login-prompt.patch @@ -0,0 +1,23 @@ +Author: Daniel Baumann <daniel.baumann@progress-linux.org> +Description: Updating login prompt. + +diff -Naurp shadow.orig/src/login.c shadow/src/login.c +--- shadow.orig/src/login.c ++++ shadow/src/login.c +@@ -736,14 +736,8 @@ int main (int argc, char **argv) + char loginprompt[256]; /* That's one hell of a prompt :) */ + + /* Make the login prompt look like we want it */ +- if (gethostname (hostn, sizeof (hostn)) == 0) { +- snprintf (loginprompt, +- sizeof (loginprompt), +- _("%s login: "), hostn); +- } else { +- strncpy (loginprompt, _("login: "), +- sizeof (loginprompt)); +- } ++ strncpy (loginprompt, _("Login: "), ++ sizeof (loginprompt)); + + retcode = pam_set_item (pamh, PAM_USER_PROMPT, loginprompt); + PAM_FAIL_CHECK; |