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.