summaryrefslogtreecommitdiffstats
path: root/source/lib/system.c
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2007-06-21 21:17:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:23:31 -0500
commit8f6cf4b8c2568c737fa31494b844ae021a42a4fc (patch)
tree8b592ea9e400f278a5ff877fc32b1f41e6bdc23a /source/lib/system.c
parent235a5ae4cdf3ea238728c2e89a4318c18257426a (diff)
downloadsamba-8f6cf4b8c2568c737fa31494b844ae021a42a4fc.tar.gz
samba-8f6cf4b8c2568c737fa31494b844ae021a42a4fc.tar.xz
samba-8f6cf4b8c2568c737fa31494b844ae021a42a4fc.zip
r23576: Fix some confusion between HAVE_BROKEN_GETGROUPS and USE_BSD_SETGROUPS.
Diffstat (limited to 'source/lib/system.c')
-rw-r--r--source/lib/system.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/lib/system.c b/source/lib/system.c
index 9f62ce760af..3e9674d9d4e 100644
--- a/source/lib/system.c
+++ b/source/lib/system.c
@@ -1022,7 +1022,7 @@ static int sys_bsd_setgroups(gid_t primary_gid, int setlen, const gid_t *gidset)
setlen = max;
}
-#if defined(BROKEN_GETGROUPS)
+#if defined(HAVE_BROKEN_GETGROUPS)
ret = sys_broken_setgroups(setlen, new_gidset ? new_gidset : gidset);
#else
ret = setgroups(setlen, new_gidset ? new_gidset : gidset);
@@ -1063,10 +1063,10 @@ int sys_setgroups(gid_t UNUSED(primary_gid), int setlen, gid_t *gidset)
return -1;
#endif /* HAVE_SETGROUPS */
-#if defined(HAVE_BROKEN_GETGROUPS)
- return sys_broken_setgroups(setlen, gidset);
-#elif defined(USE_BSD_SETGROUPS)
+#if defined(USE_BSD_SETGROUPS)
return sys_bsd_setgroups(primary_gid, setlen, gidset);
+#elif defined(HAVE_BROKEN_GETGROUPS)
+ return sys_broken_setgroups(setlen, gidset);
#else
return setgroups(setlen, gidset);
#endif