diff options
author | dtucker <dtucker> | 2013-04-05 00:20:00 +0000 |
---|---|---|
committer | dtucker <dtucker> | 2013-04-05 00:20:00 +0000 |
commit | f212a850835ddad7fd4b3e040d9eb9ef90f7b82b (patch) | |
tree | 5a6af5c0c32322ce91d93563738657f59fcda4aa /sshconnect.c | |
parent | 5c2e554e235af95719a06175d3f96c538546e8cd (diff) | |
download | openssh-f212a850835ddad7fd4b3e040d9eb9ef90f7b82b.tar.gz |
- markus@cvs.openbsd.org 2013/02/22 19:13:56
[sshconnect.c]
support ProxyCommand=- (stdin/out already point to the proxy); ok djm@
Diffstat (limited to 'sshconnect.c')
-rw-r--r-- | sshconnect.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sshconnect.c b/sshconnect.c index 07800a65..cf071128 100644 --- a/sshconnect.c +++ b/sshconnect.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshconnect.c,v 1.236 2012/09/14 16:51:34 markus Exp $ */ +/* $OpenBSD: sshconnect.c,v 1.237 2013/02/22 19:13:56 markus Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -89,6 +89,13 @@ ssh_proxy_connect(const char *host, u_short port, const char *proxy_command) pid_t pid; char *shell, strport[NI_MAXSERV]; + if (!strcmp(proxy_command, "-")) { + packet_set_connection(STDIN_FILENO, STDOUT_FILENO); + packet_set_timeout(options.server_alive_interval, + options.server_alive_count_max); + return 0; + } + if ((shell = getenv("SHELL")) == NULL || *shell == '\0') shell = _PATH_BSHELL; |