Maximum Config Sizes

john heasley heas at shrubbery.net
Wed Jul 6 23:09:49 UTC 2005


Thu, Jul 07, 2005 at 12:07:06AM +0100, Jee Kay:
> On 7/6/05, Jee Kay <jeekay at gmail.com> wrote:
> > With NOPIPE, the .raw correctly contains the full output of the
> > config. The .new however does not. I shall dig deeper into nrancid
> > when I have a chance and see what is causing a bogus match.
> 
> (apologies for the context diff.. stupid solaris)
> 
> > diff nrancid.orig nrancid
> 269c269
> <           $prompt = "\-\>\s*";
> ---
> >           $prompt = "^[A-Za-z0-9\(\)]+\-\>\s*";

the most recent nrancid matches more explicitly.

            $prompt = ($_ =~ /^([^>]+->)/)[0];
            $prompt =~ s/([][}{)(\\])/\\$1/g;

Does that work for you?



More information about the Rancid-discuss mailing list