Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #21151
Closed (moved) (moved)
Open
Issue created Jan 06, 2017 by Roger Dingledine@arma

man page lists wrong default for DataDirectory

In my doc/tor.1 in my git checkout, I have

       DataDirectory DIR
           Store working data in DIR (Default: /usr/local/var/lib/tor)

Apparently the underlying code (in tor.1.txt) is

[[DataDirectory]] **DataDirectory** __DIR__::
    Store working data in DIR (Default: @LOCALSTATEDIR@/lib/tor)

It looks like if DataDirectory remains unset (which is the default), on Windows you get

get_windows_conf_root()

whereas on other platforms, you get

    d = "~/.tor";

and then it's only if you're running as root that you get

     fn = tor_strdup(LOCALSTATEDIR PATH_SEPARATOR "tor");

But I admit that all of this is confusing, because we have functions like find_torrc_filename() and get_default_conf_file() and get_torrc_fname() so it's hard to say for sure.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking