nrancid misses one line per page when pager is enabled
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.
Changed in rancid (Debian): | |
status: | Unknown → Fix Released |
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.