From 6b7c4413fec1337b843d40c4192ccc7f28df83d5 Mon Sep 17 00:00:00 2001 From: Yannick Bergeron Date: Fri, 8 Aug 2008 13:32:15 -0400 Subject: [PATCH] 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) (This used to be commit 0d2fb0e280e497094a4c95f8dca1383ee1cfa982) --- source4/lib/replace/replace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/lib/replace/replace.c b/source4/lib/replace/replace.c index 106c9dfe629..98d799b07e8 100644 --- a/source4/lib/replace/replace.c +++ b/source4/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;