[or-cvs] a first go at fixing a bug matt edman reported: when he tries

arma at seul.org arma at seul.org
Sun Dec 11 10:01:24 UTC 2005


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:
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.


Index: config.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.462
retrieving revision 1.463
diff -u -d -r1.462 -r1.463
--- config.c	11 Dec 2005 09:18:25 -0000	1.462
+++ config.c	11 Dec 2005 10:01:21 -0000	1.463
@@ -1806,8 +1806,8 @@
   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");
   }
 



More information about the tor-commits mailing list