From: Yannick Bergeron Date: Fri, 8 Aug 2008 17:32:15 +0000 (-0400) Subject: using NGROUPS_MAX instead of 32 for the max group value in rep_initgroups() subroutin... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d2fb0e280e497094a4c95f8dca1383ee1cfa982;p=thirdparty%2Fsamba.git using NGROUPS_MAX instead of 32 for the max group value in rep_initgroups() subroutine in lib/replace/replace.c (cherry picked from commit 13b1a232d2fe05ae3e924ea2503d05ff5084146e) --- diff --git a/source/lib/replace/replace.c b/source/lib/replace/replace.c index 106c9dfe629..98d799b07e8 100644 --- a/source/lib/replace/replace.c +++ b/source/lib/replace/replace.c @@ -170,7 +170,7 @@ int rep_initgroups(char *name, gid_t id) #include gid_t *grouplst = NULL; - int max_gr = 32; + int max_gr = NGROUPS_MAX; int ret; int i,j; struct group *g;