[rancid] Alteon switch "esecret" problem again - rancid 2.3.6
paul at gear.dyndns.org
Tue Apr 19 22:47:00 UTC 2011
On 19/04/11 19:36, Krzysztof Zygmunt wrote:
> [ info from another guy having the same problem ]
> This one seems to work:
> bash-3.2$ diff /usr/bin/arancid /usr/bin/arancid.original
> < next if (/^.*?esecret.*/);
> Can we do sth. to make this change applied in source code of 2.3.6
> version to make sure
> it still works fine after we upgrade to another version ?
> On Thu, Apr 14, 2011 at 7:11 PM, Lee <ler762 at gmail.com> wrote:
>> probably this:
>>> next if (/esecret/);
>> is ignoring any lines that have the string "esecret". I'd try adding
>> that line to the 2.3.6 source code.
If i'm not mistaken (it *is* before my first coffee is finished this
morning, so it's entirely possible), the line you've suggested is
a) not valid regexp, and
b) functionally equivalent to the line that Lee suggested.
Why not just use the simpler version?
More information about the Rancid-discuss