git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cddf13
)
Use sys_setgroups - systems with broken getgroups need this.
author
Jeremy Allison
<jra@samba.org>
Wed, 11 Oct 2000 17:20:18 +0000
(17:20 +0000)
committer
Jeremy 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
patch
|
blob
|
history
diff --git
a/source3/nsswitch/wb_client.c
b/source3/nsswitch/wb_client.c
index 1725ab34483de92c86c0ac9b8d2284b9d3a6ddac..436bbc7bcc3d56c5eb7df8ba373b60342cbbeab5 100644
(file)
--- 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 (s
ys_s
etgroups(ngroups, groups) == -1) {
errno = EPERM;
result = -1;
goto done;