Use sys_setgroups - systems with broken getgroups need this.
authorJeremy Allison <jra@samba.org>
Wed, 11 Oct 2000 17:20:18 +0000 (17:20 +0000)
committerJeremy Allison <jra@samba.org>
Wed, 11 Oct 2000 17:20:18 +0000 (17:20 +0000)
Jeremy.
(This used to be commit c7c90c83372df53eac0f3779dffedd4b28c8c757)

source3/nsswitch/wb_client.c

index 1725ab34483de92c86c0ac9b8d2284b9d3a6ddac..436bbc7bcc3d56c5eb7df8ba373b60342cbbeab5 100644 (file)
@@ -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;