summaryrefslogtreecommitdiff
path: root/auth-pam.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-04-30 00:47:29 +1000
committerDamien Miller <djm@mindrot.org>2000-04-30 00:47:29 +1000
commit1bead335d7381b553bc4a13b3ea2b9dc09679123 (patch)
tree4ea95a94ee08154c459c92452062c00d64bb2170 /auth-pam.c
parenteba71bab9bf01c0d688f829a8971f902732558df (diff)
- Merge HP-UX fixes and TCB support from Ged Lodder <lodder@yacc.com.au>
Diffstat (limited to 'auth-pam.c')
-rw-r--r--auth-pam.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/auth-pam.c b/auth-pam.c
index e1e24854..e3f4c425 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -13,7 +13,7 @@
#include "xmalloc.h"
#include "servconf.h"
-RCSID("$Id: auth-pam.c,v 1.3 2000/04/20 13:12:58 damien Exp $");
+RCSID("$Id: auth-pam.c,v 1.4 2000/04/29 14:47:29 damien Exp $");
/* Callbacks */
static int pamconv(int num_msg, const struct pam_message **msg,
@@ -226,7 +226,11 @@ void start_pam(struct passwd *pw)
/* Return list of PAM enviornment strings */
char **fetch_pam_environment(void)
{
+#ifdef HAVE_PAM_GETENVLIST
return(pam_getenvlist((pam_handle_t *)pamh));
+#else /* HAVE_PAM_GETENVLIST */
+ return(NULL);
+#endif /* HAVE_PAM_GETENVLIST */
}
/* Print any messages that have been generated during authentication */