nrancid misses one line per page when pager is enabled

Bug #325603 reported by Sam Cannell
8
Affects Status Importance Assigned to Milestone
rancid (Debian)
Fix Released
Unknown
rancid (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: rancid-core

When rancid is connecting to a Juniper Netscreen device (tested against Netscreen 204 and 208) on which the console pager is enabled, and the user rancid is connecting as is does not have permission to disable the pager, nrancid will fail to back up one line of the config per page.

The output parser throws away any line beginning with '--- more ---'; however when the Netscreen displays the first line of a subsequent page, it simply backspaces out the '--- more ---' text and replaces it with spaces - there's no line break between the pager prompt and the next line of the config.

The attached patch for the nrancid script fixes the problem for the firewalls I've tested it against, but I'm not sure what its effect will be on other Netscreen devices.

Revision history for this message
Sam Cannell (sam-cannell) wrote :
Revision history for this message
Sam Cannell (sam-cannell) wrote :

Just realised the ' if /^--- more ---/' in the patch is totally redundant; sorry about that, I was just messing about with the line that was already in the script until it worked.

Revision history for this message
Sam Cannell (sam-cannell) wrote :
Revision history for this message
Václav Ovsík (vaclav-ovsik-gmail) wrote :

Hello,
I just reported this bug into Debian BTS and send a mail to upstream.
See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=520899
--
Zito

Revision history for this message
David Futcher (bobbo) wrote :

Debian reports this was fixed in the package that shipped in Lucid. I will therefore mark this as Fix Released. If this is still an issue for anyone, feel free to re-open this bug. Thanks!

Changed in rancid (Ubuntu):
status: New → Fix Released
Changed in rancid (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.