From bc5bb55755aba69746d22cb9c79873e76e34f0bc Mon Sep 17 00:00:00 2001 From: Kevin Steves Date: Tue, 21 May 2002 17:59:13 +0000 Subject: - (stevesk) [sshd.c] #ifndef HAVE_CYGWIN for setgroups() --- sshd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sshd.c') diff --git a/sshd.c b/sshd.c index 82520b8b0..afb872665 100644 --- a/sshd.c +++ b/sshd.c @@ -1005,6 +1005,7 @@ 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 @@ -1014,6 +1015,7 @@ 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