getgroups() SUSv2 compliance

Egor Duda deo@logos-m.ru
Tue Aug 29 03:05:00 GMT 2000


Hi!

  SUSv2 states that:

==========================================================================
The getgroups() function will fail if:

[EINVAL]
        The gidsetsize argument is non-zero and is less than the number of
        supplementary group IDs. 
==========================================================================

patch attached to accomplish this.

Egor.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19
getgroups-error-patch.ChangeLog
getgroups-error-patch.diff

-------------- next part --------------
2000-08-29  Egor Duda  <deo@logos-m.ru>

	* grp.cc (getgroups): fail with EINVAL if array is not large
	enough to hold all supplementary group IDs.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getgroups-error-patch.diff
Type: text/x-diff
Size: 1499 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20000829/f7327fab/attachment.bin>


More information about the Cygwin-patches mailing list