[rancid] Re: clogin bug setting prompt

Lance Vermilion rancid at gheek.net
Wed Feb 27 19:30:53 UTC 2008


Casey,

Did you notice this issue on any alpha versions?

-Lance

On 2/27/08, Casey T. Deccio <ctdecci at sandia.gov> wrote:
> Apologies if this is known already.  I am running RANCID 2.3.1 with
> expect 5.42.1.  In clogin there is a bug in setting the prompt
> appropriately for switches using the "xyz> (enable)" prompt (or any
> other prompts including characters with special regex meaning--besides
> brackets).  The parentheses from the $expect_out(buffer) are not escaped
> when the prompt variable is updated, so when "expect -re $prompt {}" is
> called, the prompt matches "xyz> enable" but not "xyz> (enable)".  I've
> attached a patch to clogin (it includes other characters too, just in
> case they may need to be escaped also).
>
> Regards,
> Casey
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>
>


More information about the Rancid-discuss mailing list