lib/replace/replace.c initgroups() max_gr

yaberger at ca.ibm.com yaberger at ca.ibm.com
Tue Mar 25 19:08:41 GMT 2008


Hi

I was wondering why max_gr  was set to 32 instead of using the NGROUPS_MAX 
variable, which is usually in limits.h or set to 32 if NGROUPS_MAX isn't 
defined

ie on AIX:

/usr/include/sys/limits.h

#define NGROUPS_MAX     128             /* max number of supplementary 
group IDs
                                           per process, >= 0 */


the patch if you decide to use the NGROUPS_MAX variable instead of a 
static 32 value





Regards,


Yannick Bergeron
yaberger at ca.ibm.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: samba_3_2_test_rep_initgroups_NGROUPS_MAX-1.patch
Type: application/octet-stream
Size: 590 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20080325/43d1a411/samba_3_2_test_rep_initgroups_NGROUPS_MAX-1.obj


More information about the samba-technical mailing list