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 705d4768b..9ac43a882 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1018,7 +1018,6 @@ main(int ac, char **av)
1018 if (test_flag) 1018 if (test_flag)
1019 exit(0); 1019 exit(0);
1020 1020
1021#ifndef HAVE_CYGWIN
1022 /* 1021 /*
1023 * Clear out any supplemental groups we may have inherited. This 1022 * Clear out any supplemental groups we may have inherited. This
1024 * prevents inadvertent creation of files with bad modes (in the 1023 * prevents inadvertent creation of files with bad modes (in the
@@ -1028,7 +1027,6 @@ main(int ac, char **av)
1028 */ 1027 */
1029 if (setgroups(0, NULL) < 0) 1028 if (setgroups(0, NULL) < 0)
1030 debug("setgroups() failed: %.200s", strerror(errno)); 1029 debug("setgroups() failed: %.200s", strerror(errno));
1031#endif /* !HAVE_CYGWIN */
1032 1030
1033 /* Initialize the log (it is reinitialized below in case we forked). */ 1031 /* Initialize the log (it is reinitialized below in case we forked). */
1034 if (debug_flag && !inetd_flag) 1032 if (debug_flag && !inetd_flag)