Opened 3 years ago

Closed 3 years ago

#21151 closed defect (fixed)

man page lists wrong default for DataDirectory

Reported by: arma Owned by:
Priority: Medium Milestone: Tor: 0.3.1.x-final
Component: Core Tor/Tor Version:
Severity: Normal Keywords: easy doc
Cc: Actual Points: 0
Parent ID: Points: .1
Reviewer: Sponsor:


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


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.

Child Tickets

Change History (3)

comment:1 Changed 3 years ago by nickm

Milestone: Tor: 0.3.1.x-final

comment:2 Changed 3 years ago by nickm

Keywords: easy doc added
Points: .1

comment:3 Changed 3 years ago by nickm

Actual Points: 0
Resolution: fixed
Status: newclosed

Fix in 411736a1325058

Note: See TracTickets for help on using tickets.