[rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8

Mina Eskander meskander at perimeterwatch.com
Tue Mar 3 20:53:02 UTC 2009


I changed to the directory where clogin is located /usr/local/rancid/bin
And ran the following command:
patch -b -p0 < clogin.in.diff

here is the output

[root at pwsecLX bin]# patch -b -p0 < clogin.in.diff
patching file clogin.in
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n] y
Hunk #1 FAILED at 572.
Hunk #2 FAILED at 611.
Hunk #3 FAILED at 852.
3 out of 3 hunks FAILED -- saving rejects to file clogin.in.rej

Did I do something wrong?

Mina Eskander
Perimeterwatch Technologies
Direct:   +1 (347) 448-2845
Mobile:   +1 (347) 510-4102
meskander at perimeterwatch.com

Network Security | Disaster Recovery | Business Continuity | IT Projects | Application Development
_____________________________________________________________________
New York: (347) 448-2845 - 34-12 36th Street - 2nd Floor - Astoria, NY 11106


-----Original Message-----
From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Mina Eskander
Sent: Monday, March 02, 2009 1:46 PM
To: john heasley
Cc: rancid-discuss at shrubbery.net
Subject: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8

How do I do install the patch? Just replace those files?

Mina Eskander
Perimeterwatch Technologies
Direct:   +1 (347) 448-2845
Mobile:   +1 (347) 510-4102
meskander at perimeterwatch.com

Network Security | Disaster Recovery | Business Continuity | IT Projects | Application Development
_____________________________________________________________________
New York: (347) 448-2845 - 34-12 36th Street - 2nd Floor - Astoria, NY 11106


-----Original Message-----
From: john heasley [mailto:heas at shrubbery.net]
Sent: Monday, March 02, 2009 1:45 PM
To: Mina Eskander
Cc: john heasley; Lance Vermilion; rancid-discuss at shrubbery.net
Subject: Re: [rancid] Re: How do i downgrade from 2.3.2a9 to 2.3.2a8

Fri, Feb 27, 2009 at 01:15:48PM -0500, Mina Eskander:
> So it looks like the problem is with the regular expression matching, can anybody help me as to why and how to fix it?
> Here is where it fails, it doesn't know it is in enable mode
>
> expect: does "<switch>> (enable) " (spawn_id exp6) match regular
> expression "<switch>> \\(enable\\)"? no

\\(enable\\)

the double \s are wrong, those should be single \s, escaping the ()s.  I believe i broke it trying to deal with CSR's funky prompts.

would you try the attached patch?
_______________________________________________
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