diff -Naurd rancid-2.3.2/bin/rancid.in rancid-2.3.2_patched/bin/rancid.in --- rancid-2.3.2/bin/rancid.in 2009-04-20 22:35:01.000000000 +0200 +++ rancid-2.3.2_patched/bin/rancid.in 2009-11-16 15:20:03.000000000 +0100 @@ -1858,10 +1858,20 @@ } # dummy function -sub DoNothing {print STDOUT;} +sub DoNothing { + print STDERR " In DoNothing: $_" if ($debug); + while () { + tr/\015//d; + last if (/^$prompt/); + next if (/^(\s*|\s*$cmd\s*)$/); + } + return 0; +} + # Main @commandtable = ( + {'terminal no exec prompt timestamp' => 'DoNothing'}, {'admin show version' => 'ShowVersion'}, {'show version' => 'ShowVersion'}, {'show redundancy secondary' => 'ShowRedundancy'},