From: Yannick Bergeron Date: Thu, 30 Jul 2009 23:31:24 +0000 (-0400) Subject: Increase the max_grp value to 128 (AIX NGROUPS_MAX value) instead of 32 to allow... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1da21f70ec4cebb7ee523dda8abf4100584901f8;p=thirdparty%2Fsamba.git Increase the max_grp value to 128 (AIX NGROUPS_MAX value) instead of 32 to allow AIX to call sys_getgrouplist only once (cherry picked from commit c3e12444f57e24dcd6c9259537ed0489db4658e9) (cherry picked from commit 2666b3e27444ffcad3afc21e276f189ac238433f) --- diff --git a/source/lib/system_smbd.c b/source/lib/system_smbd.c index 1f5dd3172f3..b22d15fb8a9 100644 --- a/source/lib/system_smbd.c +++ b/source/lib/system_smbd.c @@ -153,7 +153,7 @@ bool getgroups_unix_user(TALLOC_CTX *mem_ctx, const char *user, gid_t *groups; int i; - max_grp = MIN(32, groups_max()); + max_grp = MIN(128, groups_max()); temp_groups = SMB_MALLOC_ARRAY(gid_t, max_grp); if (! temp_groups) { return False;