diff options
Diffstat (limited to 'sftp.c')
-rw-r--r-- | sftp.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -16,7 +16,7 @@ | |||
16 | 16 | ||
17 | #include "includes.h" | 17 | #include "includes.h" |
18 | 18 | ||
19 | RCSID("$OpenBSD: sftp.c,v 1.66 2005/08/08 13:22:48 jaredy Exp $"); | 19 | RCSID("$OpenBSD: sftp.c,v 1.67 2005/09/13 23:40:07 djm Exp $"); |
20 | 20 | ||
21 | #ifdef USE_LIBEDIT | 21 | #ifdef USE_LIBEDIT |
22 | #include <histedit.h> | 22 | #include <histedit.h> |
@@ -1447,6 +1447,9 @@ main(int argc, char **argv) | |||
1447 | extern int optind; | 1447 | extern int optind; |
1448 | extern char *optarg; | 1448 | extern char *optarg; |
1449 | 1449 | ||
1450 | /* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */ | ||
1451 | sanitise_stdfd(); | ||
1452 | |||
1450 | __progname = ssh_get_progname(argv[0]); | 1453 | __progname = ssh_get_progname(argv[0]); |
1451 | args.list = NULL; | 1454 | args.list = NULL; |
1452 | addargs(&args, "ssh"); /* overwritten with ssh_program */ | 1455 | addargs(&args, "ssh"); /* overwritten with ssh_program */ |