This is the mail archive of the
mailing list for the glibc project.
[Bug libc/9962] New: For non-existing groups, getgrnam_r() return the last group configured in the system
- From: "aas029 at yahoo dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 18 Mar 2009 05:21:37 -0000
- Subject: [Bug libc/9962] New: For non-existing groups, getgrnam_r() return the last group configured in the system
- Reply-to: sourceware-bugzilla at sourceware dot org
When getgrnam_r() is passed a group name that does NOT exist in the system, it
is returning the structure for whatever the last group configured in the system
is (the last line in /etc/group).
The expectation is that if a group doesn't exist in the system (i.e. no group
exist with a matching name), the group will not be found and an error will be
returned by getgrnam_r().
GNU C Library stable release version 2.9, by Roland McGrath et al.
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
Compiled by GNU CC version 4.3.2 20081105 (Red Hat 4.3.2-7).
Compiled on a Linux >>2.6.18-92.1.10.el5<< system on 2008-11-13.
The C stubs add-on version 2.1.2.
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
RT using linux kernel aio
For bug reporting instructions, please see:
Example code if needed can be found here
Summary: For non-existing groups, getgrnam_r() return the last
group configured in the system
AssignedTo: drepper at redhat dot com
ReportedBy: aas029 at yahoo dot com
CC: aas029 at yahoo dot com,glibc-bugs at sources dot redhat
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.