summaryrefslogtreecommitdiffstats
path: root/bin/flogin.in
diff options
context:
space:
mode:
Diffstat (limited to 'bin/flogin.in')
-rwxr-xr-xbin/flogin.in12
1 files changed, 5 insertions, 7 deletions
diff --git a/bin/flogin.in b/bin/flogin.in
index a913b56..1e34077 100755
--- a/bin/flogin.in
+++ b/bin/flogin.in
@@ -374,14 +374,12 @@ proc login { router user userpswd passwd enapasswd prompt cmethod cyphertype } {
send "no\r"
send_user "\nError: The host key for $router has changed. Update the SSH known_hosts file accordingly.\n"
return 1 }
+ -re "Offending key for .* \(yes\/no\)\?" {
+ send "no\r"
+ send_user "\nError: host key mismatch for $router. Update the SSH known_hosts file accordingly.\n"
+ return 1 }
denied { send_user "\nError: Check your passwd for $router\n"
- if { $do_command || $do_script } {
- send "quit"
- wait
- return 1
- } else {
- return 1
- }
+ catch {close}; wait; return 1
}
"% Bad passwords" {send_user "\nError: Check your passwd for $router\n"; return 1 }
-re "(Username:|login:|Name :)" {