Tolerate starting up with missing hidden service directory

Fixes bug 14106; bugfix on 0.2.6.2-alpha

Found by stem tests.
This commit is contained in:
Nick Mathewson 2015-01-05 11:39:38 -05:00
parent fc0febc5c6
commit 276700131a
2 changed files with 5 additions and 1 deletions

4
changes/bug14106 Normal file
View File

@ -0,0 +1,4 @@
o Minor bugfixes (hidden services):
- Successfully launch Tor with a nonexistent hidden service directory.
Our fix for bug 13942 didn't catch this case. Fixes bug 14106;
bugfix on 0.2.6.2-alpha.

View File

@ -531,7 +531,7 @@ rend_config_services(const or_options_t *options, int validate_only)
}
}
if (service) {
cpd_check_t check_opts = CPD_CHECK_MODE_ONLY;
cpd_check_t check_opts = CPD_CHECK_MODE_ONLY|CPD_CHECK;
if (service->dir_group_readable) {
check_opts |= CPD_GROUP_READ;
}