summaryrefslogtreecommitdiffstats
path: root/bin/xrancid.in
diff options
context:
space:
mode:
Diffstat (limited to 'bin/xrancid.in')
-rw-r--r--bin/xrancid.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/xrancid.in b/bin/xrancid.in
index 4a34fca..fdd7dd4 100644
--- a/bin/xrancid.in
+++ b/bin/xrancid.in
@@ -320,7 +320,6 @@ sub WriteTerm {
}
# XOS (at least version 11.3.3.7) is buggy and sometimees outputs only
# the last 702 octets of the SSH key... make sure to strip it anyway
- print STDERR "D \"$_\" D\n";
if (/^(configure ssh2 key pregenerated|[a-f\d]{2}(:[a-f\d]{2}){700,}\s*$)/ && $filter_pwds >= 1) {
ProcessHistory("COMMENTS","keysort","H0","# configure ssh2 key <key removed>\n");
# Only EW has a multiline key (terminated by a blank line)
@@ -462,7 +461,7 @@ TOP: while(<INPUT>) {
# note: this match sucks rocks, but currently the extreme bits are
# unreliable about echoing the 'exit\n' command. this match might really
# be a bad idea, but instead rely upon WriteTerm's found_end?
- if (/$prompt\s?(quit|exit|Connection( to \S+)? closed)/ && $found_end) {
+ if (/^$prompt\s?(quit|exit)|^Connection( to \S+)? closed/ && $found_end) {
$clean_run=1;
last;
}