summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-10-11 17:20:18 +0000
committerJeremy Allison <jra@samba.org>2000-10-11 17:20:18 +0000
commitcd6a6bd2cb802f61ace483c9e94af451e10bdb59 (patch)
treebf174946a54965a43199efa3dacf602c3bcf7499
parent2cddf134e698e19d07b31ef68b325bc1c7070782 (diff)
downloadsamba-cd6a6bd2cb802f61ace483c9e94af451e10bdb59.tar.gz
samba-cd6a6bd2cb802f61ace483c9e94af451e10bdb59.tar.bz2
samba-cd6a6bd2cb802f61ace483c9e94af451e10bdb59.zip
Use sys_setgroups - systems with broken getgroups need this.
Jeremy. (This used to be commit c7c90c83372df53eac0f3779dffedd4b28c8c757)
-rw-r--r--source3/nsswitch/wb_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/wb_client.c b/source3/nsswitch/wb_client.c
index 1725ab3448..436bbc7bcc 100644
--- a/source3/nsswitch/wb_client.c
+++ b/source3/nsswitch/wb_client.c
@@ -313,7 +313,7 @@ int winbind_initgroups(char *user, gid_t gid)
/* Set the groups */
- if (setgroups(ngroups, groups) == -1) {
+ if (sys_setgroups(ngroups, groups) == -1) {
errno = EPERM;
result = -1;
goto done;