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/4528] getgrouplist() updates ngroups incorrectly if there was not sufficient room to copy all the supplementary group identifiers


------- 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&section=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.


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