diff options
Diffstat (limited to 'debian')
-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 68dc397..4b62bc7 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -14,3 +14,4 @@ 508_nologin_in_usr_sbin 505_useradd_recommend_adduser 501_commonio_group_shadow +progress-linux/0001-login-prompt.patch |