diff options
author | Darren Tucker <dtucker@zip.com.au> | 2005-10-03 18:11:24 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2005-10-03 18:11:24 +1000 |
commit | ce321d8a30a81222d11a4c27fd353804a9afecd3 (patch) | |
tree | 9b43bd892b03286fbbda2f032fe16a0f6cf9bb74 /ssh-keyscan.c | |
parent | d89dbf29ff288ac8ba1755d15f63d2bd58dcb71b (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 'ssh-keyscan.c')
-rw-r--r-- | ssh-keyscan.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ssh-keyscan.c b/ssh-keyscan.c index 46f063687..8ac97bd35 100644 --- a/ssh-keyscan.c +++ b/ssh-keyscan.c | |||
@@ -7,7 +7,7 @@ | |||
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include "includes.h" | 9 | #include "includes.h" |
10 | RCSID("$OpenBSD: ssh-keyscan.c,v 1.55 2005/06/17 02:44:33 djm Exp $"); | 10 | RCSID("$OpenBSD: ssh-keyscan.c,v 1.56 2005/09/13 23:40:07 djm Exp $"); |
11 | 11 | ||
12 | #include "openbsd-compat/sys-queue.h" | 12 | #include "openbsd-compat/sys-queue.h" |
13 | 13 | ||
@@ -712,6 +712,9 @@ main(int argc, char **argv) | |||
712 | seed_rng(); | 712 | seed_rng(); |
713 | TAILQ_INIT(&tq); | 713 | TAILQ_INIT(&tq); |
714 | 714 | ||
715 | /* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */ | ||
716 | sanitise_stdfd(); | ||
717 | |||
715 | if (argc <= 1) | 718 | if (argc <= 1) |
716 | usage(); | 719 | usage(); |
717 | 720 | ||