[or-cvs] Absolutely never call close_temp_logs while validating log ...

Nick Mathewson nickm at seul.org
Mon Nov 22 20:08:10 UTC 2004


Update of /home/or/cvsroot/tor/src/or
In directory moria.mit.edu:/tmp/cvs-serv7913/src/or

Modified Files:
	config.c 
Log Message:
Absolutely never call close_temp_logs while validating log options.

Index: config.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.261
retrieving revision 1.262
diff -u -d -r1.261 -r1.262
--- config.c	21 Nov 2004 07:43:12 -0000	1.261
+++ config.c	22 Nov 2004 20:08:07 -0000	1.262
@@ -1785,13 +1785,15 @@
       ok = 0; goto cleanup;
     }
     if (!strcasecmp(smartlist_get(elts,1), "stdout")) {
-      if (!validate_only)
+      if (!validate_only) {
         add_stream_log(levelMin, levelMax, "<stdout>", stdout);
-      close_temp_logs();
+        close_temp_logs();
+      }
     } else if (!strcasecmp(smartlist_get(elts,1), "stderr")) {
-      if (!validate_only)
+      if (!validate_only) {
         add_stream_log(levelMin, levelMax, "<stderr>", stderr);
-      close_temp_logs();
+        close_temp_logs();
+      }
     } else if (!strcasecmp(smartlist_get(elts,1), "syslog")) {
 #ifdef HAVE_SYSLOG_H
       if (!validate_only)



More information about the tor-commits mailing list