Reject torrc if RunAsDaemon is given with relative paths.

The chdir() call in RunAsDaemon makes the behavior here surprising,
and either way of trying to resolve the surprise seems sure to
startle a significant fraction of users.  Instead, let's refuse to
guess, and refuse these configurations.

Closes ticket 22731.
This commit is contained in:
Nick Mathewson
2017-09-06 11:39:11 -04:00
parent 342712b9ef
commit 6fea44c673
2 changed files with 37 additions and 20 deletions
+5
View File
@@ -0,0 +1,5 @@
o Minor features (relay, configuration):
- Reject attempts to use relative file paths when RunAsDaemon is set.
Previously, Tor would accept these, but the directory-changing step
of RunAsDaemon would give strange and/or confusing results.
Closes ticket 22731.