NetBSD Problem Report #3279

Received: (qmail-queue invoked from smtpd); 3 Mar 1997 12:12:39 -0000
Message-Id: <199703031159.LAA29998@orwell.southern.net>
Date: Mon, 3 Mar 1997 11:59:54 GMT
From: david@mono.org
Reply-To: david@mono.org
To: gnats-bugs@gnats.netbsd.org
Subject: getpwent(3) misleading
X-Send-Pr-Version: 3.95

>Number:         3279
>Category:       lib
>Synopsis:       getpwent(3) misleading
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          closed
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 03 04:20:02 +0000 1997
>Closed-Date:    Mon Mar 03 19:41:35 +0000 1997
>Last-Modified:  Mon Mar 03 19:44:18 +0000 1997
>Originator:     David Brownlee
>Release:        dec 10
>Organization:
<a href="http://www.mono.org/>Monochrome</a>
>Environment:
System: NetBSD orwell.southern.net 1.2B NetBSD 1.2B (GENERIC) #11: Tue Dec 10 00:24:14 MET 1996 pk@flambard:/usr/src/sys/arch/sparc/compile/GENERIC sparc


>Description:
	getpwent(3) states:

BUGS
     The functions getpwent(), getpwnam(), and getpwuid(), leave their results
     in an internal static object and return a pointer to that object. Subse- 
     quent calls to the same function will modify the same object.

	Code inspection reveals they all use the _same_ static object.

>How-To-Repeat:
	Read man page. Take literally.

>Fix:
	The above chould possibly be better phrased as:

     The functions getpwent(), getpwnam(), and getpwuid(), leave their results
     in an internal static object and return a pointer to that object. Subse-
     quent calls to the any of these functions will modify the same object.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: cjs 
State-Changed-When: Mon Mar 3 11:41:35 PST 1997 
State-Changed-Why:  
Fixed. Thank-you. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.