diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 14:56:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 14:56:29 +0000 |
commit | 3949cec658262fe5b6a74766e5385d6159d177c1 (patch) | |
tree | 9a56f4e538e5be0d23ab63321a4592eaa9dedd9d /debian | |
parent | Updating vcs fields. (diff) | |
download | shadow-3949cec658262fe5b6a74766e5385d6159d177c1.tar.xz shadow-3949cec658262fe5b6a74766e5385d6159d177c1.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 | ||||
-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 503940b..8bd6fd0 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -14,3 +14,4 @@ 505_useradd_recommend_adduser 506_relaxed_usernames 542_useradd-O_option +progress-linux/0001-login-prompt.patch |