File openssh-7.2p2-dont_use_pthreads_in_PAM.patch of Package openssh.29886
From b4f40cacaaad85db970870be9e5cc03af54622e5 Mon Sep 17 00:00:00 2001
From: Old openssh patches <pcerny@suse.com>
Date: Tue, 25 Oct 2022 18:52:59 +0200
Subject: [PATCH] openssh-7.2p2-dont_use_pthreads_in_PAM
# HG changeset patch
# Parent e4886597a8984ae1594b6866fe1b232370b23529
# posix threads are generally not supported nor safe
# (see upstream log from 2005-05-24)
# --used to be called '-pam-fix3'
---
auth-pam.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/auth-pam.c b/auth-pam.c
index 8425af1e..d436155a 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -787,7 +787,9 @@ sshpam_query(void *ctx, char **name, char **info,
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;
--
2.38.0