summaryrefslogtreecommitdiffstats
path: root/auth-pam.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2003-11-18 12:45:35 +1100
committerDarren Tucker <dtucker@zip.com.au>2003-11-18 12:45:35 +1100
commit8a1624c42df87c0dc0cad75f45bbb9eb34fcd59a (patch)
treeeac49068b7cb3e268677258d6365eec462aa74d3 /auth-pam.c
parent18df00cc77b39fe7858cf987eb9a4f7c314af018 (diff)
- (dtucker) [auth-pam.c] Only use pam_putenv if our platform has it. ok djm@
Diffstat (limited to 'auth-pam.c')
-rw-r--r--auth-pam.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/auth-pam.c b/auth-pam.c
index af8d37fa..2594bed3 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -31,7 +31,7 @@
/* Based on $FreeBSD: src/crypto/openssh/auth2-pam-freebsd.c,v 1.11 2003/03/31 13:48:18 des Exp $ */
#include "includes.h"
-RCSID("$Id: auth-pam.c,v 1.81 2003/11/18 01:42:08 dtucker Exp $");
+RCSID("$Id: auth-pam.c,v 1.82 2003/11/18 01:45:36 dtucker Exp $");
#ifdef USE_PAM
#include <security/pam_appl.h>
@@ -167,11 +167,13 @@ import_environments(Buffer *b)
for(i = 0; i < num_env; i++) {
env = buffer_get_string(b, NULL);
+#ifdef HAVE_PAM_PUTENV
/* Errors are not fatal here */
if ((err = pam_putenv(sshpam_handle, env)) != PAM_SUCCESS) {
error("PAM: pam_putenv: %s",
pam_strerror(sshpam_handle, sshpam_err));
}
+#endif
}
}