summaryrefslogtreecommitdiff
path: root/source3/lib/system_smbd.c
diff options
context:
space:
mode:
authorYannick Bergeron <burgergold@hotmail.com>2009-07-30 19:31:24 -0400
committerVolker Lendecke <vl@samba.org>2009-07-31 04:34:37 -0400
commitc3e12444f57e24dcd6c9259537ed0489db4658e9 (patch)
tree63870fd9b58d5bfce7a577ccdbed21a9e10b0ab3 /source3/lib/system_smbd.c
parent41b95da435758bb522a2d7748f52afa81d9499eb (diff)
downloadsamba-c3e12444f57e24dcd6c9259537ed0489db4658e9.tar.gz
samba-c3e12444f57e24dcd6c9259537ed0489db4658e9.tar.bz2
samba-c3e12444f57e24dcd6c9259537ed0489db4658e9.zip
Increase the max_grp value to 128 (AIX NGROUPS_MAX value) instead of 32 to allow AIX to call sys_getgrouplist only once
Diffstat (limited to 'source3/lib/system_smbd.c')
-rw-r--r--source3/lib/system_smbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/system_smbd.c b/source3/lib/system_smbd.c
index 1f5dd3172f..b22d15fb8a 100644
--- a/source3/lib/system_smbd.c
+++ b/source3/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;