mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-11-24 02:02:10 +08:00
- (stevesk) [sshd.c] #ifndef HAVE_CYGWIN for setgroups()
This commit is contained in:
parent
c5041acef3
commit
bc5bb55755
@ -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.
|
||||
@ -659,4 +660,4 @@
|
||||
- (stevesk) entropy.c: typo in debug message
|
||||
- (djm) ssh-keygen -i needs seeded RNG; report from markus@
|
||||
|
||||
$Id: ChangeLog,v 1.2136 2002/05/21 17:50:21 stevesk Exp $
|
||||
$Id: ChangeLog,v 1.2137 2002/05/21 17:59:14 stevesk Exp $
|
||||
|
2
sshd.c
2
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)
|
||||
|
Loading…
Reference in New Issue
Block a user