[tor-bugs] #1802 [Tor - Tor client]: ControlPort GETCONF does not recognize command aliases
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Thu Aug 5 16:15:42 UTC 2010
#1802: ControlPort GETCONF does not recognize command aliases
------------------------------+---------------------------------------------
Reporter: cjb | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Tor - Tor client | Version:
Keywords: | Parent:
------------------------------+---------------------------------------------
Because commands passed to GETCONF are not looked-up in the aliases table
with `expand_abbrev()`, we reject GETCONF requests for options that would
be valid (though deprecated) if they were used in a torrc.
For example, `GETCONF AllowInvalidNodes` works whereas `GETCONF
AllowUnverifiedNodes` fails. `AllowUnverifiedNodes` is a deprecated alias
for `AllowInvalidNodes`.
I propose fixing this by having `handle_control_getconf()` first call
`expand_abbrev()` on the option it's going to look up. I'll attach a
patch that does that for review.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/1802>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list