summaryrefslogtreecommitdiff
path: root/cli-main.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2008-09-17 14:35:36 +0000
committerMatt Johnston <matt@ucc.asn.au>2008-09-17 14:35:36 +0000
commit72c0c39b202d089297e3bbb8f6962c0d5ae06c44 (patch)
tree73017c96e5b239d2ca3f040338a50db9648c8f73 /cli-main.c
parent432e1b158fb2c2d12c23eddc5f9fc12f4235ad7b (diff)
downloaddropbear-72c0c39b202d089297e3bbb8f6962c0d5ae06c44.tar.gz
Don't capture stderr from spawned processes in proxycommand mode
Diffstat (limited to 'cli-main.c')
-rw-r--r--cli-main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cli-main.c b/cli-main.c
index 2d9f1c8..4ba43c0 100644
--- a/cli-main.c
+++ b/cli-main.c
@@ -134,13 +134,11 @@ static void exec_proxy_cmd(void *user_data_cmd) {
static void cli_proxy_cmd(int *sock_in, int *sock_out) {
int ret;
- int errfd;
- pid_t pid;
fill_passwd(cli_opts.own_user);
ret = spawn_command(exec_proxy_cmd, cli_opts.proxycmd,
- sock_out, sock_in, &errfd, &pid);
+ sock_out, sock_in, NULL, NULL);
if (ret == DROPBEAR_FAILURE) {
dropbear_exit("Failed running proxy command");
*sock_in = *sock_out = -1;