[syslog-ng] [Bug 140] syslog-ng ignores filter boolean logic

bugzilla at bugzilla.balabit.com bugzilla at bugzilla.balabit.com
Sun Oct 23 20:22:08 CEST 2011


https://bugzilla.balabit.com/show_bug.cgi?id=140


Balazs Scheidler <bazsi at balabit.hu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|                            |FIXED
             Status|NEW                         |RESOLVED




--- Comment #1 from Balazs Scheidler <bazsi at balabit.hu>  2011-10-23 20:22:08 ---
thanks for the report. I could successfully reproduce and fix the issue. Since my VPN key has just expired, I'm unable to push the patch to the git tree, I'm
attaching it to the ticket.

Here's the patch summary for future reference:
commit 4b438115f6387eb52b6c39c1f751ecf0c4a5ac5f
Author: Balazs Scheidler <bazsi at balabit.hu>
Date:   Sun Oct 23 20:19:58 2011 +0200

    filters: fixed filter() evaluation when embedded as an AND/OR subexpression

    When introducing the "init" method for filters one case was omitted: even
    though AND and OR expressions don't want to do anything on init, their
    subexpressions might, so this patch adds an init function to AND and OR
    which does nothing but calls the same for its "left" and "right"
    subexpression.

    This patch fixes filter("xxx") expression evaluation when that is
    not a single expression, but rather included in an AND or OR.

    Reported-By: Leonid Isaev <lisaev at umail.iu.edu>
    Cc: <syslog-ng-stable at balabit.hu>
    Signed-off-by: Balazs Scheidler <bazsi at balabit.hu>


-- 
Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the syslog-ng mailing list