Browse Source

Tolerate starting up with missing hidden service directory

Fixes bug 14106; bugfix on 0.2.6.2-alpha

Found by stem tests.
Nick Mathewson 9 years ago
parent
commit
276700131a
2 changed files with 5 additions and 1 deletions
  1. 4 0
      changes/bug14106
  2. 1 1
      src/or/rendservice.c

+ 4 - 0
changes/bug14106

@@ -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.

+ 1 - 1
src/or/rendservice.c

@@ -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;
     }