mosh.pl: Allow shell expansion of --server with --local

Fixes #946, matching the behavior of --server without --local.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2017-12-02 22:57:18 -05:00
parent 1e526aa140
commit d4ce0d4f4f
+1 -1
View File
@@ -396,7 +396,7 @@ if ( $pid == 0 ) { # child
delete $ENV{ 'SSH_CONNECTION' };
chdir; # $HOME
print "MOSH IP ${userhost}\n";
exec( $server, @server );
exec( "$server " . shell_quote( @server ) );
die "Cannot exec $server: $!\n";
}
if ( $use_remote_ip eq 'proxy' ) {