Преглед на файлове

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 преди 20 години
родител
ревизия
77c0f6d456
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  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");
   }