using NGROUPS_MAX instead of 32 for the max group value in rep_initgroups() subroutin...
authorYannick Bergeron <yaberger@ca.ibm.com>
Fri, 8 Aug 2008 17:32:15 +0000 (13:32 -0400)
committerJeremy Allison <jra@samba.org>
Fri, 8 Aug 2008 19:28:15 +0000 (12:28 -0700)
(This used to be commit 13b1a232d2fe05ae3e924ea2503d05ff5084146e)

source3/lib/replace/replace.c

index 106c9dfe629d464003c20e54dcd38719f2e9f9af..98d799b07e8f3950fe30039da961c6944964c34f 100644 (file)
@@ -170,7 +170,7 @@ int rep_initgroups(char *name, gid_t id)
 #include <grp.h>
 
        gid_t *grouplst = NULL;
-       int max_gr = 32;
+       int max_gr = NGROUPS_MAX;
        int ret;
        int    i,j;
        struct group *g;