]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Tolerate starting up with missing hidden service directory
authorNick Mathewson <nickm@torproject.org>
Mon, 5 Jan 2015 16:39:38 +0000 (11:39 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 5 Jan 2015 16:39:38 +0000 (11:39 -0500)
Fixes bug 14106; bugfix on 0.2.6.2-alpha

Found by stem tests.

changes/bug14106 [new file with mode: 0644]
src/or/rendservice.c

diff --git a/changes/bug14106 b/changes/bug14106
new file mode 100644 (file)
index 0000000..cf6e568
--- /dev/null
@@ -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.
index b9d98755ea3c8b109ebc529f0e3731eb326f5f29..3b73674691427aed528bb9a7be5c9b10b1a1d92d 100644 (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;
     }