]> granicus.if.org Git - linux-pam/blobdiff - modules/pam_tally/pam_tally.c
Relevant BUGIDs:
[linux-pam] / modules / pam_tally / pam_tally.c
index 27fe0b37dcaa57102140a4c04f02e2002eda2cda..341f448ea4295c078690ec14380df77165612f6c 100644 (file)
@@ -49,6 +49,7 @@
 /* #define PAM_SM_PASSWORD */
 
 #include <security/pam_modules.h>
+#include <security/_pam_modutil.h>
 
 /*---------------------------------------------------------------------*/
 
@@ -123,7 +124,7 @@ static int pam_get_uid( pam_handle_t *pamh, uid_t *uid, const char **userp )
       return PAM_AUTH_ERR;
     }
 
-    if ( ! ( pw = getpwnam( user ) ) ) {
+    if ( ! ( pw = _pammodutil_getpwnam( pamh, user ) ) ) {
       _pam_log(LOG_ERR,MODULE_NAME ": pam_get_uid; no such user %s",user);
       return PAM_USER_UNKNOWN;
     }