2013-09-19 06:09:33 +02:00
|
|
|
# posix threads are generally not supported nor safe
|
|
|
|
# (see upstream log from 2005-05-24)
|
|
|
|
|
2014-04-14 23:53:01 +02:00
|
|
|
diff --git a/openssh-6.6p1/auth-pam.c b/openssh-6.6p1/auth-pam.c
|
|
|
|
--- a/openssh-6.6p1/auth-pam.c
|
|
|
|
+++ b/openssh-6.6p1/auth-pam.c
|
2014-02-14 15:54:10 +01:00
|
|
|
@@ -781,17 +781,19 @@ sshpam_query(void *ctx, char **name, cha
|
2013-09-19 06:09:33 +02:00
|
|
|
}
|
|
|
|
if (type == PAM_SUCCESS) {
|
|
|
|
if (!sshpam_authctxt->valid ||
|
|
|
|
(sshpam_authctxt->pw->pw_uid == 0 &&
|
|
|
|
options.permit_root_login != PERMIT_YES))
|
|
|
|
fatal("Internal error: PAM auth "
|
|
|
|
"succeeded when it should have "
|
|
|
|
"failed");
|
|
|
|
+#ifndef UNSUPPORTED_POSIX_THREADS_HACK
|
|
|
|
import_environments(&buffer);
|
|
|
|
+#endif
|
|
|
|
*num = 0;
|
|
|
|
**echo_on = 0;
|
|
|
|
ctxt->pam_done = 1;
|
2014-01-31 13:18:41 +01:00
|
|
|
free(msg);
|
2013-09-19 06:09:33 +02:00
|
|
|
return (0);
|
|
|
|
}
|
|
|
|
error("PAM: %s for %s%.100s from %.100s", msg,
|
|
|
|
sshpam_authctxt->valid ? "" : "illegal user ",
|