diff options
author | Tomas Mraz <tm@t8m.info> | 2005-01-12 10:56:57 +0000 |
---|---|---|
committer | Tomas Mraz <tm@t8m.info> | 2005-01-12 10:56:57 +0000 |
commit | ea0ecd8c547fc83619b00ebfb6cf15fedddac4b5 (patch) | |
tree | bb61b6a9b780c5506a2b31f02e1ecd77a4dad87f /modules/pam_xauth | |
parent | 4c473e543d672474e685b74bb10770e762c62efc (diff) | |
download | pam-ea0ecd8c547fc83619b00ebfb6cf15fedddac4b5.tar.gz pam-ea0ecd8c547fc83619b00ebfb6cf15fedddac4b5.tar.bz2 pam-ea0ecd8c547fc83619b00ebfb6cf15fedddac4b5.zip |
Relevant BUGIDs:
Purpose of commit: cleanup
Commit summary:
---------------
Get user name by pam_get_user call instead of pam_get_item
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; |