summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorikerexxe <ipedrosa@redhat.com>2020-10-21 09:47:20 +0200
committerTomáš Mráz <tmraz@redhat.com>2020-10-21 10:07:31 +0200
commit9f24bbeeb4fe04bc396898cd9825478ad52c5ac7 (patch)
tree463dd8ac71c260899e853c62b0ccafbff06963a7 /modules
parent930200f240a50dcb84d8e3a5f0c33159b6c4309c (diff)
pam_motd: unset prompt value to drop privileges
modules/pam_motd/pam_motd.c: set NULL value instead of "key user" for the prompt when dropping privileges.
Diffstat (limited to 'modules')
-rw-r--r--modules/pam_motd/pam_motd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pam_motd/pam_motd.c b/modules/pam_motd/pam_motd.c
index a4fd0e59..6ac8cba2 100644
--- a/modules/pam_motd/pam_motd.c
+++ b/modules/pam_motd/pam_motd.c
@@ -288,7 +288,7 @@ static int drop_privileges(pam_handle_t *pamh, struct pam_modutil_privs *privs)
const char *username;
int retval;
- retval = pam_get_user(pamh, &username, "key user");
+ retval = pam_get_user(pamh, &username, NULL);
if (retval == PAM_SUCCESS) {
pw = pam_modutil_getpwnam (pamh, username);