[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



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)