summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-10-03 18:11:24 +1000
committerDarren Tucker <dtucker@zip.com.au>2005-10-03 18:11:24 +1000
commitce321d8a30a81222d11a4c27fd353804a9afecd3 (patch)
tree9b43bd892b03286fbbda2f032fe16a0f6cf9bb74 /sshd.c
parentd89dbf29ff288ac8ba1755d15f63d2bd58dcb71b (diff)
- djm@cvs.openbsd.org 2005/09/13 23:40:07
[sshd.c ssh.c misc.h sftp.c ssh-keygen.c ssh-keysign.c sftp-server.c scp.c misc.c ssh-keyscan.c ssh-add.c ssh-agent.c] ensure that stdio fds are attached; ok deraadt@
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sshd.c b/sshd.c
index e9125a229..ceb85dd54 100644
--- a/sshd.c
+++ b/sshd.c
@@ -42,7 +42,7 @@
42 */ 42 */
43 43
44#include "includes.h" 44#include "includes.h"
45RCSID("$OpenBSD: sshd.c,v 1.312 2005/07/25 11:59:40 markus Exp $"); 45RCSID("$OpenBSD: sshd.c,v 1.313 2005/09/13 23:40:07 djm Exp $");
46 46
47#include <openssl/dh.h> 47#include <openssl/dh.h>
48#include <openssl/bn.h> 48#include <openssl/bn.h>
@@ -924,6 +924,9 @@ main(int ac, char **av)
924 if (geteuid() == 0 && setgroups(0, NULL) == -1) 924 if (geteuid() == 0 && setgroups(0, NULL) == -1)
925 debug("setgroups(): %.200s", strerror(errno)); 925 debug("setgroups(): %.200s", strerror(errno));
926 926
927 /* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */
928 sanitise_stdfd();
929
927 /* Initialize configuration options to their default values. */ 930 /* Initialize configuration options to their default values. */
928 initialize_server_options(&options); 931 initialize_server_options(&options);
929 932