changeset 79:091d3fe3db46

start coding on new config syntax
author carl
date Sat, 16 Jul 2005 20:12:20 -0700
parents b6beb282fd83
children d554e41f2886
files src/context.cpp src/dnsbl.cpp
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/context.cpp	Sat Jul 16 14:54:06 2005 -0700
+++ b/src/context.cpp	Sat Jul 16 20:12:20 2005 -0700
@@ -561,7 +561,12 @@
                     break;  // done
                 }
                 else {
-                    me.add_tag(have);
+                    me.add_tag(have);                           // base version
+                    char buf[200];
+                    snprintf(buf, sizeof(buf), "/%s", have);
+                    me.add_tag(register_string(buf));           // leading /
+                    snprintf(buf, sizeof(buf), "%s/", have);
+                    me.add_tag(register_string(buf));           // trailing /
                 }
             }
             if (!tsa(tok, token_semi)) return false;
--- a/src/dnsbl.cpp	Sat Jul 16 14:54:06 2005 -0700
+++ b/src/dnsbl.cpp	Sat Jul 16 20:12:20 2005 -0700
@@ -399,8 +399,8 @@
                 syslog_opened = true;
             }
             syslog(LOG_NOTICE, "%s", text);
-            closelog();
-            syslog_opened = false;
+            // closelog();
+            // syslog_opened = false;
         pthread_mutex_unlock(&syslog_mutex);
     }
     else {