changeset 541:b151e6df683e

disapproval of revision '6d6160b277bfc7c2db6888a2ac91ac618cef6de3'
author Matt Johnston <matt@ucc.asn.au>
date Mon, 08 Jun 2009 14:51:22 +0000
parents 6c906f903f1d
children c9128994a2d6
files cli-runopts.c
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/cli-runopts.c	Mon Jun 08 14:44:23 2009 +0000
+++ b/cli-runopts.c	Mon Jun 08 14:51:22 2009 +0000
@@ -90,10 +90,6 @@
 					
 }
 
-/* Note that options that affect the transport or auth layers (such as -i or
- * -W) should also be passed through to a multi-hop child proxycmd, in
- * parse_multihop_hostname(). */
-
 void cli_getopts(int argc, char ** argv) {
 
 	unsigned int i, j;
@@ -473,9 +469,9 @@
 		if (cli_opts.remoteport == NULL) {
 			cli_opts.remoteport = "22";
 		}
-		cmd_len = strlen(argv0) + strlen(remainder) 
+		cmd_len = strlen(remainder) 
 			+ strlen(cli_opts.remotehost) + strlen(cli_opts.remoteport)
-			+ 30;
+			+ strlen(argv0) + 30;
 		cli_opts.proxycmd = m_malloc(cmd_len);
 		snprintf(cli_opts.proxycmd, cmd_len, "%s -B %s:%s %s", 
 				argv0, cli_opts.remotehost, cli_opts.remoteport, remainder);