[or-cvs] bugfix: if no loglevel or logfile is specified, then we nee...

Roger Dingledine arma at seul.org
Thu May 20 08:15:31 UTC 2004


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

Modified Files:
	config.c 
Log Message:
bugfix: if no loglevel or logfile is specified, then we need to open
a default log to stdout.


Index: config.c
===================================================================
RCS file: /home/or/cvsroot/src/or/config.c,v
retrieving revision 1.116
retrieving revision 1.117
diff -u -d -r1.116 -r1.117
--- config.c	20 May 2004 02:42:49 -0000	1.116
+++ config.c	20 May 2004 08:15:28 -0000	1.117
@@ -774,6 +774,10 @@
    */
   struct config_line_t *opt = options->LogOptions;
 
+  /* Special case if nothing is specified. */
+  if(!opt)
+    add_single_log(NULL, NULL, options->RunAsDaemon);
+
   /* Special case for if first option is LogLevel. */
   if (opt && !strcasecmp(opt->key, "LogLevel")) {
     if (opt->next && !strcasecmp(opt->next->key, "LogFile")) {



More information about the tor-commits mailing list