[tor-bugs] #28311 [Core Tor/Tor]: Do ~ expansion on tor's configured paths

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun Nov 4 12:53:31 UTC 2018


#28311: Do ~ expansion on tor's configured paths
------------------------------+------------------------------
     Reporter:  teor          |      Owner:  (none)
         Type:  enhancement   |     Status:  new
     Priority:  Medium        |  Milestone:  Tor: unspecified
    Component:  Core Tor/Tor  |    Version:
     Severity:  Normal        |   Keywords:
Actual Points:                |  Parent ID:  #28298
       Points:                |   Reviewer:
      Sponsor:                |
------------------------------+------------------------------
 Split off #28298:

 Replying to [comment:4 arma]:
 > Ok, that above fix is bad, because it will complain when you set
 DataDirectory to e.g. {{{~/.test}}} -- which is actually an absolute path,
 even if it doesn't start with {{{/}}}.

 "~" expansion is not universal: it only works in some shells, some
 languages, and some applications.

 In particular, "~" expansion is not a documented feature of
 path_is_relative() or make_path_absolute(). We can add it as a feature if
 you want.

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


More information about the tor-bugs mailing list