diff options
author | ikerexxe <ipedrosa@redhat.com> | 2020-10-21 09:47:20 +0200 |
---|---|---|
committer | Tomáš Mráz <tmraz@redhat.com> | 2020-10-21 10:07:31 +0200 |
commit | 9f24bbeeb4fe04bc396898cd9825478ad52c5ac7 (patch) | |
tree | 463dd8ac71c260899e853c62b0ccafbff06963a7 | |
parent | 930200f240a50dcb84d8e3a5f0c33159b6c4309c (diff) | |
download | pam-9f24bbeeb4fe04bc396898cd9825478ad52c5ac7.tar.gz pam-9f24bbeeb4fe04bc396898cd9825478ad52c5ac7.tar.bz2 pam-9f24bbeeb4fe04bc396898cd9825478ad52c5ac7.zip |
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.
-rw-r--r-- | modules/pam_motd/pam_motd.c | 2 |
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); |