diff options
Diffstat (limited to 'modules/pam_xauth')
-rw-r--r-- | modules/pam_xauth/pam_xauth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pam_xauth/pam_xauth.c b/modules/pam_xauth/pam_xauth.c index 1f1e65a3..bde432e2 100644 --- a/modules/pam_xauth/pam_xauth.c +++ b/modules/pam_xauth/pam_xauth.c @@ -323,7 +323,7 @@ pam_sm_open_session(pam_handle_t *pamh, int flags, int argc, const char **argv) } /* Read the target user's name. */ - if (pam_get_item(pamh, PAM_USER, (const void**)&user) != PAM_SUCCESS) { + if (pam_get_user(pamh, &user, NULL) != PAM_SUCCESS) { syslog(LOG_ERR, "pam_xauth: error determining target " "user's name"); return PAM_SESSION_ERR; |