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:
duncan_ferguson 2006-10-30 17:23:14 +00:00
parent 3bcb144670
commit 9303b92b39

View file

@ -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/.*@//;