From 5712301e6572b7e51a9be1cd39c9da64a9e75f3a Mon Sep 17 00:00:00 2001 From: Duncan Ferguson Date: Wed, 2 Dec 2009 09:20:56 +0000 Subject: [PATCH] Always use given name when opening ssh connections Do not the resolved host name when opening the ssh connection - the resolution is only used to check the hosts exists rather than get the real IP. Debian bug 533406 --- ChangeLog | 1 + src/cssh.pl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dfc9b05..7dacc92 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,7 @@ - ignore directories of the same name, and - always search for the binary if it is not fully qualified - Thanks to Ian Marsh for the patch +* Always use the given host name, not the resolved host name, when opening the ssh connection (Debian bug 533406) 2009-09-24 Duncan Ferguson - v3.27 diff --git a/src/cssh.pl b/src/cssh.pl index 7609416..a7673f6 100755 --- a/src/cssh.pl +++ b/src/cssh.pl @@ -1106,7 +1106,7 @@ sub open_client_windows(@) { # affecting the main program $servers{$server}{realname} .= "==" if ( !$realname ); my $exec - = "$config{terminal} $color $config{terminal_args} $config{terminal_allow_send_events} $config{terminal_title_opt} '$config{title}: $servers{$server}{connect_string}' -font $config{terminal_font} -e \"$^X\" \"-e\" '$helper_script' '$servers{$server}{pipenm}' '$servers{$server}{realname}' '$servers{$server}{username}' '$servers{$server}{port}'"; + = "$config{terminal} $color $config{terminal_args} $config{terminal_allow_send_events} $config{terminal_title_opt} '$config{title}: $servers{$server}{connect_string}' -font $config{terminal_font} -e \"$^X\" \"-e\" '$helper_script' '$servers{$server}{pipenm}' '$servers{$server}{givenname}' '$servers{$server}{username}' '$servers{$server}{port}'"; logmsg( 2, "Terminal exec line:\n$exec\n" ); exec($exec) == 0 or warn("Failed: $!"); }