Don't open DirPortFrontPage when DirPort not set/enabled
It's possible to trigger #12028 (moved) after HUP with this torrc:
DirPortFrontPage /etc/tor/tor-exit-notice.html
Sandbox 1
May 23 17:10:40.000 [notice] Received reload signal (hup). Reloading config and resetting internal state.
May 23 17:10:40.000 [notice] Read configuration file "/usr/share/tor/tor-service-defaults-torrc".
May 23 17:10:40.000 [notice] Read configuration file "/etc/tor/torrc".
May 23 17:10:40.000 [notice] Tor 0.2.5.4-alpha-dev (git-cfd0ee514c279bc6) opening log file.
May 23 17:10:40.000 [warn] sandbox_intern_string(): Bug: No interned sandbox parameter found for /etc/tor/tor-exit-notice.html
May 23 17:10:40.000 [warn] Could not open "/etc/tor/tor-exit-notice.html": Permission denied
May 23 17:10:40.000 [warn] DirPortFrontPage file '/etc/tor/tor-exit-notice.html' not found. Continuing anyway.
In this case ClientOnly 1
is implied. I think this is separate from #12028 (moved), because I don't think we should try to open DirPortFrontPage when we're not a relay, or even if we're a relay but DirPort isn't set.
Trac:
Username: alphawolf