mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +01:00
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
This commit is contained in:
parent
79f09b2f17
commit
77c0f6d456
@ -1806,8 +1806,8 @@ options_validate(or_options_t *old_options, or_options_t *options)
|
|||||||
if (normalize_log_options(options))
|
if (normalize_log_options(options))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
/* Special case if no options are given. */
|
/* Special case on first boot if no Log options are given. */
|
||||||
if (!options->Logs) {
|
if (!old_options && !options->Logs) {
|
||||||
config_line_append(&options->Logs, "Log", "notice stdout");
|
config_line_append(&options->Logs, "Log", "notice stdout");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user