]> andersk Git - openssh.git/commitdiff
- (stevesk) [sshd.c] #ifndef HAVE_CYGWIN for setgroups()
authorstevesk <stevesk>
Tue, 21 May 2002 17:59:13 +0000 (17:59 +0000)
committerstevesk <stevesk>
Tue, 21 May 2002 17:59:13 +0000 (17:59 +0000)
ChangeLog
sshd.c

index 42d063dc574235dd90cce0a236fb7741ccd997d1..33c32ee29509c1594def25055ee60d2a3ac87516 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 20020521
  - (stevesk) [sshd.c] bug 245; disable setsid() for now
+ - (stevesk) [sshd.c] #ifndef HAVE_CYGWIN for setgroups()
 
 20020517
  - (tim) [configure.ac] remove extra MD5_MSG="no" line.
diff --git a/sshd.c b/sshd.c
index 82520b8b0b47cd22cec85a3d43269bdfcc4f46b9..afb872665c1af708dd221f37ef6867c29d659b8d 100644 (file)
--- 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)
This page took 0.852519 seconds and 5 git commands to generate.