[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #9680 [Tor]: get_datadir_fname2_suffix() should create missing directories as needd
#9680: get_datadir_fname2_suffix() should create missing directories as needd
-------------------------+----------------------------------
Reporter: nickm | Owner:
Type: enhancement | Status: new
Priority: minor | Milestone: Tor: unspecified
Component: Tor | Version:
Keywords: tor-relay | Actual Points:
Parent ID: | Points:
-------------------------+----------------------------------
In #9645, mr-4 notes that Tor behaves inconsistently if the datadir gets
obliterated. IMO, removing the datadir of a running Tor is not a
supported operation... but that's no reason not to be a little robust when
we can.
One opportunity we have here is to just make get_datadir_fname2_suffix()
always check whether the directory it's about to give a fname in exists,
and if so, create it. (We should audit its uses though to make sure
that's sensible. Perhaps it needs to take a create-dir-if-needed flag.)
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/9680>
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