[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #1802 [Tor - Tor client]: ControlPort GETCONF does not recognize command aliases
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs