This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/4528] getgrouplist() updates ngroups incorrectly if there was not sufficient room to copy all the supplementary group identifiers
- From: "jakub at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 21 May 2007 14:42:46 -0000
- Subject: [Bug libc/4528] getgrouplist() updates ngroups incorrectly if there was not sufficient room to copy all the supplementary group identifiers
- References: <20070521151038.4528.lex@ispras.ru>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jakub at redhat dot com 2007-05-21 15:42 -------
Then LSB is buggy, file a bug against it instead.
If getgrouplist returns -1 because of insufficient room, it fills in *ngroups
with the number of groups that would be filled into the array if there was enough
room.
See info getgrouplist (particularly the supplementary_groups example, which
wouldn't work at all if LSB's description was used).
http://www.delorie.com/gnu/docs/glibc/libc_610.html
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/getgrouplist.3.html
http://leaf.dragonflybsd.org/cgi/web-man?command=getgrouplist§ion=3
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://sourceware.org/bugzilla/show_bug.cgi?id=4528
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.