]> git.sur5r.net Git - openldap/commit
Patch: back-passwd needs pwent mutex (ITS#1794)
authorKurt Zeilenga <kurt@openldap.org>
Thu, 9 May 2002 02:26:05 +0000 (02:26 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 9 May 2002 02:26:05 +0000 (02:26 +0000)
commit445b7982d708dd8f31d47adb7b9be4f9db35bef2
tree75322d5cb706c77111162bae49c1ed3e7c0922d9
parent15e6a98bbab60c132cb3470bff83e886c51597ca
Patch: back-passwd needs pwent mutex  (ITS#1794)

================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
================

back-passwd uses getpwent() and setpwfile(), which use static data.
It needs a mutex to make sure these operations can complete without
interference from another back-passwd call.  Here is a patch.

Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, May 2002.
servers/slapd/back-passwd/external.h
servers/slapd/back-passwd/init.c
servers/slapd/back-passwd/search.c