This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/9962] New: For non-existing groups, getgrnam_r() return the last group configured in the system


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(). 

=========
/lib/libc-2.9.so
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
PARTICULAR PURPOSE.
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.
Available extensions:
	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
	BIND-8.2.3-T5B
	RT using linux kernel aio
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
=========

Example code if needed can be found here
http://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=/apis/gtgrnamr.htm

-- 
           Summary: For non-existing groups, getgrnam_r() return the last
                    group configured in the system
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P3
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: aas029 at yahoo dot com
                CC: aas029 at yahoo dot com,glibc-bugs at sources dot redhat
                    dot com


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]