]> granicus.if.org Git - linux-pam/blobdiff - modules/pam_lastlog/pam_lastlog.c
Relevant BUGIDs:
[linux-pam] / modules / pam_lastlog / pam_lastlog.c
index 6e53c24429d5900c4cd65845d4f19ba6128ae543..e9eeac4ef1c95a9e0666663d6f48e1c7b8bbe500 100644 (file)
@@ -425,7 +425,7 @@ int pam_sm_open_session(pam_handle_t *pamh, int flags, int argc
 
     /* what uid? */
 
-    pwd = getpwnam(user);
+    pwd = _pammodutil_getpwnam (pamh, user);
     if (pwd == NULL) {
        D(("couldn't identify user %s", user));
        return PAM_CRED_INSUFFICIENT;