diff options
author | Kevin Steves <stevesk@pobox.com> | 2002-05-21 17:59:13 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@pobox.com> | 2002-05-21 17:59:13 +0000 |
commit | bc5bb55755aba69746d22cb9c79873e76e34f0bc (patch) | |
tree | 9e5edf3b405aa1073f376faddfc695798df38484 /sshd.c | |
parent | c5041acef392b489d11cbb1793f72f01acc229b8 (diff) |
- (stevesk) [sshd.c] #ifndef HAVE_CYGWIN for setgroups()
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1005,6 +1005,7 @@ main(int ac, char **av) | |||
1005 | if (test_flag) | 1005 | if (test_flag) |
1006 | exit(0); | 1006 | exit(0); |
1007 | 1007 | ||
1008 | #ifndef HAVE_CYGWIN | ||
1008 | /* | 1009 | /* |
1009 | * Clear out any supplemental groups we may have inherited. This | 1010 | * Clear out any supplemental groups we may have inherited. This |
1010 | * prevents inadvertent creation of files with bad modes (in the | 1011 | * prevents inadvertent creation of files with bad modes (in the |
@@ -1014,6 +1015,7 @@ main(int ac, char **av) | |||
1014 | */ | 1015 | */ |
1015 | if (setgroups(0, NULL) < 0) | 1016 | if (setgroups(0, NULL) < 0) |
1016 | debug("setgroups() failed: %.200s", strerror(errno)); | 1017 | debug("setgroups() failed: %.200s", strerror(errno)); |
1018 | #endif /* !HAVE_CYGWIN */ | ||
1017 | 1019 | ||
1018 | /* Initialize the log (it is reinitialized below in case we forked). */ | 1020 | /* Initialize the log (it is reinitialized below in case we forked). */ |
1019 | if (debug_flag && !inetd_flag) | 1021 | if (debug_flag && !inetd_flag) |