From 1457ef9142cee3212c76ca61897de4ef62629e9b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net>
Date: Thu, 16 Apr 1998 14:50:39 -0700
Subject: [PATCH] deadlock with shadow passwords fixed

Rev: src/modules/system/passwords.c:1.9
---
 src/modules/system/passwords.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/modules/system/passwords.c b/src/modules/system/passwords.c
index ca0071eb68..bb687c0c85 100644
--- a/src/modules/system/passwords.c
+++ b/src/modules/system/passwords.c
@@ -1,5 +1,5 @@
 /*
- * $Id: passwords.c,v 1.8 1998/04/07 00:20:28 hubbe Exp $
+ * $Id: passwords.c,v 1.9 1998/04/16 21:50:39 hubbe Exp $
  *
  * Password handling for Pike.
  *
@@ -19,7 +19,7 @@
 
 #include "global.h"
 
-RCSID("$Id: passwords.c,v 1.8 1998/04/07 00:20:28 hubbe Exp $");
+RCSID("$Id: passwords.c,v 1.9 1998/04/16 21:50:39 hubbe Exp $");
 
 #include "module_support.h"
 #include "interpret.h"
@@ -118,9 +118,7 @@ void push_pwent(struct passwd *ent)
   {
     struct spwd *foo;
     THREADS_ALLOW_UID();
-    mt_lock(&password_protection_mutex);
     foo = getspnam(ent->pw_name);
-    mt_unlock(&password_protection_mutex);
     THREADS_DISALLOW_UID();
     if(foo)
       push_text(foo->sp_pwdp);
-- 
GitLab