This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/9962] For non-existing groups, getgrnam_r() return the last group configured in the system
- From: "drepper at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 20 Mar 2009 18:24:22 -0000
- Subject: [Bug libc/9962] For non-existing groups, getgrnam_r() return the last group configured in the system
- References: <20090318052136.9962.aas029@yahoo.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From drepper at redhat dot com 2009-03-20 18:24 -------
You are using the interface wrong. The function only returns a nonzero value if
there has been a problem in the execution. A failure to find an entry to return
does not qualify. This condition is indicated by the pointer, pointed to by the
last parameter, being NULL. This is correctly implemented.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://sourceware.org/bugzilla/show_bug.cgi?id=9962
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.