On Mon, Jul 19, 1999 at 07:11:55PM +0200, Rolf Offermanns wrote:
Hi Balazs! I think I have found a bug in the config file parser in 1.2.27. I will try to describe it as exactly as my english allows me to...
Thanks for the report. The problem was that the first few bytes of those variable names were the same, so the same filter rule was applied to both log statement. Try this patch: --- syslog-ng-1.1.27/src/cfgfile.c Sat Jul 10 17:58:33 1999 +++ syslog-ng/src/cfgfile.c Mon Jul 19 23:38:44 1999 @@ -18,7 +18,7 @@ * * Inspired by nsyslog, originally written by Darren Reed. * - * $Id: cfgfile.c,v 1.17 1999/07/10 15:58:33 bazsi Exp $ + * $Id: cfgfile.c,v 1.18 1999/07/18 12:56:11 bazsi Exp $ * ***************************************************************************/ @@ -62,7 +62,8 @@ #define RESOLVE_VAR(s, first, next, i) \ for (s = first; s; s = s->next) { \ - if (strncmp(i->name->data, s->name->data, i->name->length) == 0) { \ + if (i->name->length == s->name->length && \ + strncmp(i->name->data, s->name->data, i->name->length) == 0) { \ i->ref = (struct ol_object *) s; \ break; \ } \ @@ -154,7 +155,7 @@ self->init = do_init_config; self->destroy = do_destroy_config; self->backend = backend; - self->sync_freq = 1; + self->sync_freq = 0; self->mark_freq = 1200; /* 20 minutes */ self->long_hostnames = 1; self->time_reopen = 60; -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 url: http://www.balabit.hu/pgpkey.txt