[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #5605 [Tor Client]: Why is control_ports_write_to_file() called from options_act_reversible()?
#5605: Why is control_ports_write_to_file() called from options_act_reversible()?
------------------------+---------------------------------------------------
Reporter: arma | Owner:
Type: defect | Status: new
Priority: normal | Milestone: Tor: 0.2.3.x-final
Component: Tor Client | Version:
Keywords: easy | Parent:
Points: | Actualpoints:
------------------------+---------------------------------------------------
control_ports_write_to_file() writes out to a file every single time we
setconf something. That's a minor issue, but ok.
What's weirder is that we call it from options_act_reversible(). There's a
codepath (where the logs fail to initialize) where we end up refusing the
new options but the control ports file remains written with the new
options.
I think the better answer is to call it from options_act(). Also, it'd be
slightly cleaner to pass 'options' in to the function.
Optimistically marking as easy (what could go wrong ;).
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/5605>
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