From 837461bf9a8f71b96a522bf6f51d6fdcb5b2a8cd Mon Sep 17 00:00:00 2001 From: Ben Lindstrom Date: Wed, 12 Jun 2002 16:57:14 +0000 Subject: - (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 --- sshd.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sshd.c') diff --git a/sshd.c b/sshd.c index 705d4768b..9ac43a882 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) -- cgit v1.2.3