Enforce SHELL=/bin/sh for more reliable SSH proxy command.

This commit is contained in:
John Hood
2016-05-08 22:59:30 -04:00
parent eb98976410
commit 09bdc7caae
+3
View File
@@ -369,6 +369,9 @@ if ( $pid == 0 ) { # child
die "Cannot exec $server: $!\n";
}
if ( $use_remote_ip eq 'proxy' ) {
# Non-standard shells and broken shrc files cause the ssh
# proxy to break mysteriously.
$ENV{ 'SHELL' } = '/bin/sh';
my $quoted_proxy_command = shell_quote( $0, "--family=$family" );
push @sshopts, ( '-S', 'none', '-o', "ProxyCommand=$quoted_proxy_command --fake-proxy -- %h %p" );
}