[or-cvs] allow people to start their tor with runasdaemon set but

arma at seul.org arma at seul.org
Mon Jun 12 06:03:17 UTC 2006


Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	config.c 
Log Message:
allow people to start their tor with runasdaemon set but
with no logs set at all.


Index: config.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.566
retrieving revision 1.567
diff -u -p -d -r1.566 -r1.567
--- config.c	10 Jun 2006 00:26:39 -0000	1.566
+++ config.c	12 Jun 2006 06:03:15 -0000	1.567
@@ -2078,7 +2078,7 @@ options_validate(or_options_t *old_optio
     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) */



More information about the tor-commits mailing list