diff options
author | Anders Kaseorg <andersk@mit.edu> | 2017-12-02 22:57:18 -0500 |
---|---|---|
committer | Anders Kaseorg <andersk@mit.edu> | 2017-12-02 23:00:33 -0500 |
commit | d4ce0d4f4f87017611e483b1437d29803b26e26b (patch) | |
tree | 223c89388b584e782717f847778c918cb1d2eaa4 /scripts | |
parent | 1e526aa140290b4daa5ef4bb6de013a00cc56be3 (diff) |
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>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mosh.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mosh.pl b/scripts/mosh.pl index bd04565..56e96d7 100755 --- a/scripts/mosh.pl +++ b/scripts/mosh.pl @@ -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' ) { |