]> granicus.if.org Git - linux-pam/blobdiff - modules/pam_mail/pam_mail.c
Relevant BUGIDs:
[linux-pam] / modules / pam_mail / pam_mail.c
index 4888a1a5fe27737d9e496ec1b35f8f18c7078df1..6cd173b4c896f8f08c13e131e7d24a4ef138cec2 100644 (file)
@@ -46,6 +46,7 @@
 
 #include <security/pam_modules.h>
 #include <security/_pam_macros.h>
+#include <security/_pam_modutil.h>
 
 /* some syslogging */
 
@@ -184,7 +185,7 @@ static int get_folder(pam_handle_t *pamh, int ctrl,
     if (ctrl & PAM_NEW_MAIL_DIR) {
        path = *path_mail;
        if (*path == '~') {       /* support for $HOME delivery */
-           pwd = getpwnam(user);
+           pwd = _pammodutil_getpwnam(pamh, user);
            if (pwd == NULL) {
                _log_err(LOG_ERR, "user [%s] unknown", user);
                _pam_overwrite(*path_mail);