]> andersk Git - openssh.git/blobdiff - auth-pam.c
- (dtucker) [auth-pam.c] Only use pam_putenv if our platform has it. ok djm@
[openssh.git] / auth-pam.c
index 056e9aae39b0854e815179ceba2066da50851f89..1f310de5d7e2957ed15a25153d7d62ff3929ef56 100644 (file)
@@ -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
        }
 }
 
This page took 0.033352 seconds and 4 git commands to generate.