]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
allow people to start their tor with runasdaemon set but
authorRoger Dingledine <arma@torproject.org>
Mon, 12 Jun 2006 06:03:15 +0000 (06:03 +0000)
committerRoger Dingledine <arma@torproject.org>
Mon, 12 Jun 2006 06:03:15 +0000 (06:03 +0000)
with no logs set at all.

svn:r6604

src/or/config.c

index bcfd258beee93b327c2853d53be0cbdff31c7fb5..a052aa4329e51ca8cf37d10309f4510967da3624 100644 (file)
@@ -2078,7 +2078,7 @@ options_validate(or_options_t *old_options, or_options_t *options,
     REJECT("Failed to normalize old Log options. See logs for details.");
 
   /* Special case on first boot if no Log options are given. */
-  if (!options->Logs && !from_setconf)
+  if (!options->Logs && !options->RunAsDaemon && !from_setconf)
     config_line_append(&options->Logs, "Log", "notice stdout");
 
   if (options_init_logs(options, 1)<0) /* Validate the log(s) */