[tor-bugs] #3747 [Tor Client]: Tor can't create the ControlPortWriteToFile file if it is to be placed into the not-yet-existant datadir

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Wed Aug 17 15:14:20 UTC 2011


#3747: Tor can't create the ControlPortWriteToFile file if it is to be placed into
the not-yet-existant datadir
------------------------+---------------------------------------------------
 Reporter:  Sebastian   |          Owner:                    
     Type:  defect      |         Status:  new               
 Priority:  major       |      Milestone:  Tor: 0.2.2.x-final
Component:  Tor Client  |        Version:                    
 Keywords:              |         Parent:                    
   Points:              |   Actualpoints:                    
------------------------+---------------------------------------------------

Comment(by rransom):

 Replying to [comment:3 nickm]:
 > So, how about we delay all "write the port" stuff until some point in
 the process after setuid, and have it include "create parent directory as
 needed" ?

 We don't want to 'create parent directory as needed' -- the user may want
 the list of control ports dumped somewhere other than Tor's DataDirectory,
 and Tor doesn't normally create parent directories (e.g. `HiddenServiceDir
 /var/lib/tor/hidservs/ssh` doesn't work until I create the `hidservs` and
 `ssh` directories).  But waiting until after Tor has created its
 DataDirectory would be sufficient in this case.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/3747#comment:5>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list