mirror of
https://github.com/duncs/clusterssh.git
synced 2025-04-23 18:02:24 +00:00
Apply two patches from Nicolas Simonds
- cssh.hostname.patch: Some of our gear has usernames with colons in them (e.g., "root:ops1") and cssh doesn't cope well with it. A simple modification to the regex takes care of it. - cssh.options.patch: The -o option to cssh appears to be completely unimplemented. The only time the program refers to it is in the manpage, and the getopts() call. Fortunately, implementing it is really, really easy.
This commit is contained in:
parent
3bcb144670
commit
9303b92b39
1 changed files with 3 additions and 3 deletions
|
@ -189,8 +189,8 @@ sub load_config_defaults()
|
|||
|
||||
$config{ $config{comms} } = $config{comms};
|
||||
|
||||
$config{ssh_args} = "";
|
||||
$config{ssh_args} .= "-x -o ConnectTimeout=10"
|
||||
$config{ssh_args} = $options{o} if ($options{o});
|
||||
$config{ssh_args} .= " -x -o ConnectTimeout=10"
|
||||
if ( $config{ $config{comms} } =~ /ssh$/ );
|
||||
$config{rsh_args} = "";
|
||||
|
||||
|
@ -714,7 +714,7 @@ sub open_client_windows(@)
|
|||
my $port_nb;
|
||||
|
||||
# split off any provided hostname and port
|
||||
if ( $_ =~ /(\w+)@/ )
|
||||
if ( $_ =~ /([\w:]+)@/ )
|
||||
{
|
||||
$username = $1;
|
||||
$_ =~ s/.*@//;
|
||||
|
|
Loading…
Add table
Reference in a new issue