summaryrefslogtreecommitdiffstats
path: root/source/lib/system_smbd.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-04-20 01:24:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:51:16 -0500
commit95c68103ea9dbd02651e26fcaa15dd054b157529 (patch)
treeeb046e99ec53097f830b08f2c8abf0b674c01ee8 /source/lib/system_smbd.c
parentdf94b0471eb0628aa27f534134d60b62ed123688 (diff)
downloadsamba-95c68103ea9dbd02651e26fcaa15dd054b157529.tar.gz
samba-95c68103ea9dbd02651e26fcaa15dd054b157529.tar.xz
samba-95c68103ea9dbd02651e26fcaa15dd054b157529.zip
r288: combination of BUG 1081 and patch from J. Klinger -- added remove_duplicate_gids() to smbd and winbindd
Diffstat (limited to 'source/lib/system_smbd.c')
-rw-r--r--source/lib/system_smbd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/lib/system_smbd.c b/source/lib/system_smbd.c
index 73c910e631d..7edc7ca98f9 100644
--- a/source/lib/system_smbd.c
+++ b/source/lib/system_smbd.c
@@ -99,6 +99,11 @@ static int getgrouplist_internals(const char *user, gid_t gid, gid_t *groups, in
free(gids_saved);
return -1;
}
+
+ /* this will remove any duplicates gids in the list and
+ update the group counter */
+
+ remove_duplicate_gids( grpcnt, groups );
free(gids_saved);
return ret;