Explorar o código

a first go at fixing a bug matt edman reported: when he tries
to "setconf log" via the controller, it is friendly and gives
him a log to stdout, even though he didn't ask for one.


svn:r5562

Roger Dingledine %!s(int64=20) %!d(string=hai) anos
pai
achega
77c0f6d456
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/or/config.c

+ 2 - 2
src/or/config.c

@@ -1806,8 +1806,8 @@ options_validate(or_options_t *old_options, or_options_t *options)
   if (normalize_log_options(options))
     return -1;
 
-  /* Special case if no options are given. */
-  if (!options->Logs) {
+  /* Special case on first boot if no Log options are given. */
+  if (!old_options && !options->Logs) {
     config_line_append(&options->Logs, "Log", "notice stdout");
   }