summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-06-12 16:57:14 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-06-12 16:57:14 +0000
commit837461bf9a8f71b96a522bf6f51d6fdcb5b2a8cd (patch)
tree8d9133b0e60ad650bf440158bb742a8af7f5c06f /sshd.c
parentda394cae048e9106ad4f280c91e37ab0df2f1f97 (diff)
- (bal) Build noop setgroups() for cygwin to clean up code (For other
platforms without the setgroups() requirement, you MUST define SETGROUPS_NOOP in the configure.ac) Based on patch by vinschen@redhat.com
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sshd.c b/sshd.c
index 705d4768..9ac43a88 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1018,7 +1018,6 @@ main(int ac, char **av)
if (test_flag)
exit(0);
-#ifndef HAVE_CYGWIN
/*
* Clear out any supplemental groups we may have inherited. This
* prevents inadvertent creation of files with bad modes (in the
@@ -1028,7 +1027,6 @@ main(int ac, char **av)
*/
if (setgroups(0, NULL) < 0)
debug("setgroups() failed: %.200s", strerror(errno));
-#endif /* !HAVE_CYGWIN */
/* Initialize the log (it is reinitialized below in case we forked). */
if (debug_flag && !inetd_flag)