Opened 6 months ago

Closed 3 months 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:

Description

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.

Child Tickets

Change History (3)

comment:1 Changed 6 months ago by nickm

  • Milestone set to Tor: 0.3.1.x-final

comment:2 Changed 4 months ago by nickm

  • Keywords easy doc added
  • Points set to .1

comment:3 Changed 3 months ago by nickm

  • Actual Points set to 0
  • Resolution set to fixed
  • Status changed from new to closed

Fix in 411736a1325058

Note: See TracTickets for help on using tickets.