Quote proxycommand in case mosh lives in a directory with a bad name
(per Anders Kaseorg)
This commit is contained in:
+2
-1
@@ -200,7 +200,8 @@ if ( $pid == 0 ) { # child
|
|||||||
push @server, '--', @command;
|
push @server, '--', @command;
|
||||||
}
|
}
|
||||||
|
|
||||||
exec 'ssh', '-S', 'none', '-o', "ProxyCommand=$0 --fake-proxy -- %h %p", '-t', $userhost, '--', "$server " . shell_quote( @server );
|
my $quoted_self = shell_quote( $0 );
|
||||||
|
exec 'ssh', '-S', 'none', '-o', "ProxyCommand=$quoted_self --fake-proxy -- %h %p", '-t', $userhost, '--', "$server " . shell_quote( @server );
|
||||||
die "Cannot exec ssh: $!\n";
|
die "Cannot exec ssh: $!\n";
|
||||||
} else { # server
|
} else { # server
|
||||||
my ( $ip, $port, $key );
|
my ( $ip, $port, $key );
|
||||||
|
|||||||
Reference in New Issue
Block a user