summaryrefslogtreecommitdiff
path: root/clientserver.c
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2002-02-21 00:45:48 +0000
committerMartin Pool <mbp@samba.org>2002-02-21 00:45:48 +0000
commit7583ded808be86e0267a83b558892b29ee278e15 (patch)
tree280dd21db9546c1cf270634aca25f1f6515769be /clientserver.c
parent78818f44653a94a4eb1d157cc9c93f9a67d5a86c (diff)
downloadrsync-7583ded808be86e0267a83b558892b29ee278e15.tar.gz
Make setgroups(0,0) unconditional -- accidentally thinking we have
don't it on a machine that does have supplementary groups would be a security hole. If this breaks anything we'll fix it later.
Diffstat (limited to 'clientserver.c')
-rw-r--r--clientserver.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/clientserver.c b/clientserver.c
index 2bab6aa9..93a1eefb 100644
--- a/clientserver.c
+++ b/clientserver.c
@@ -285,7 +285,6 @@ static int rsync_module(int fd, int i)
}
if (am_root) {
-#ifdef HAVE_SETGROUPS
/* Get rid of any supplementary groups this process
* might have inheristed. */
if (setgroups(0, NULL)) {
@@ -293,7 +292,6 @@ static int rsync_module(int fd, int i)
io_printf(fd, "@ERROR: setgroups failed\n");
return -1;
}
-#endif
/* XXXX: You could argue that if the daemon is started
* by a non-root user and they explicitly specify a