diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:48:39 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:48:39 +0000 |
commit | c2404ecc2f97c0eaaab06ac32c7691c4a3e01dfb (patch) | |
tree | 7d8988faf9901ea84c290c5ea9a35f94bad0ccad /debian/patches | |
parent | Updating vcs fields. (diff) | |
download | shadow-c2404ecc2f97c0eaaab06ac32c7691c4a3e01dfb.tar.xz shadow-c2404ecc2f97c0eaaab06ac32c7691c4a3e01dfb.zip |
Updating login prompt.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches')
-rw-r--r-- | debian/patches/progress-linux/0001-login-prompt.patch | 23 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 24 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; diff --git a/debian/patches/series b/debian/patches/series index ba058e0..c2b8dfd 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -21,3 +21,4 @@ 505_useradd_recommend_adduser 506_relaxed_usernames 542_useradd-O_option +progress-linux/0001-login-prompt.patch |