From nobody@FreeBSD.ORG Fri May 28 19:34:13 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 3A76C14EB4; Fri, 28 May 1999 19:34:13 -0700 (PDT)
Message-Id: <19990529023413.3A76C14EB4@hub.freebsd.org>
Date: Fri, 28 May 1999 19:34:13 -0700 (PDT)
From: dlombardo@excite.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: missing reentrant interfaces for getpwnam(), getpwuid(), and getpwent()
X-Send-Pr-Version: www-1.0

>Number:         11922
>Category:       kern
>Synopsis:       missing reentrant interfaces for getpwnam(), getpwuid(), and getpwent()
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    deischen
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 28 19:40:01 PDT 1999
>Closed-Date:    Mon May 26 11:15:50 PDT 2003
>Last-Modified:  Mon May 26 11:15:50 PDT 2003
>Originator:     Dean Lombardo
>Release:        4.0-current (also 3.2-stable)
>Organization:
University of Kent at Canterbury
>Environment:
FreeBSD xtsw12c.ukc.ac.uk 4.0-CURRENT FreeBSD 4.0-CURRENT #3: Thu May 27 20:38:02 BST 1999     root@xtsw12c.ukc.ac.uk:/usr/src/sys/compile/AMSTECH  i386
>Description:
The functions getpwnam(), getpwuid() and getpwent() use static storage,
which makes them unsafe for use in multithreaded applications.
>How-To-Repeat:
See /usr/src/lib/libc/gen/getpwent.c
>Fix:
Implement getpwnam_r(), getpwuid_r(), and getpwent_r() in libc_r
to provide reentrant interfaces for these operations.  The
thread-safe interfaces should use buffers supplied by the caller
to store returned results; otherwise, the implementation remains
largely the same.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->deischen 
Responsible-Changed-By: mike 
Responsible-Changed-When: Fri Jul 20 15:22:44 PDT 2001 
Responsible-Changed-Why:  

Over to Daniel Eischen <deischen@FreeBSD.org>.  He should be able to 
determine what should be done with this PR.  Daniel, if you can't do 
anything with this PR, feel free to send it back to freebsd-bugs. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=11922 
State-Changed-From-To: open->closed 
State-Changed-By: deischen 
State-Changed-When: Mon May 26 11:15:02 PDT 2003 
State-Changed-Why:  
nectar implemented getpwent_r when he brought in nsswitch stuff. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=11922 
>Unformatted:
