git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6957d6a
)
r2450: don't limit the number of groups returned by winbindd_getgroups()
author
Gerald Carter
<jerry@samba.org>
Mon, 20 Sep 2004 19:19:59 +0000
(19:19 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 15:52:43 +0000
(10:52 -0500)
source/nsswitch/winbindd_group.c
patch
|
blob
|
history
diff --git
a/source/nsswitch/winbindd_group.c
b/source/nsswitch/winbindd_group.c
index d1e8678c81bbc847c2d25120e1f4472b4aef1a23..a3b826278b56a3113878d502f3f9d168c0535525 100644
(file)
--- a/
source/nsswitch/winbindd_group.c
+++ b/
source/nsswitch/winbindd_group.c
@@
-923,14
+923,11
@@
static void add_gid_to_array_unique(gid_t gid, gid_t **gids, int *num)
{
int i;
- if ((*num) >= groups_max())
- return;
-
for (i=0; i<*num; i++) {
if ((*gids)[i] == gid)
return;
}
-
+
*gids = Realloc(*gids, (*num+1) * sizeof(gid_t));
if (*gids == NULL)