[syslog-ng] Weird behavior

Balazs Scheidler bazsi@balabit.hu
Thu, 22 Jul 1999 11:41:43 +0200


--zx4FCpZtqtKETZ7O
Content-Type: multipart/mixed; boundary=ew6BAiZeqk4r7MaW


--ew6BAiZeqk4r7MaW
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

On Wed, Jul 21, 1999 at 07:05:15PM -0500, Nathaniel Couper-Noles wrote:
>=20
> Am I misusing the match() call?  Or perhaps the logical connectors?

No, you are not misusing it. The problem was that syslog-ng did not check if
the given regular expression compiled or not. And yours did not, since it
contained an unbalanced paren.

"/SYSTEM ("

You have to protect '(' with a \, and since \ is used as an escape in string
parsing the correct regexp should be:

"/SYSTEM \\("

But I realized that this makes reading the expressions a pain, so I added
shell-like simple quotation marks, which doesn't use the backslash as an
escape:

'/SYSTEM \('

A patch against 1.1.28 is available attached to this message. Please tell me
whether it works or not.

--=20
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
     url: http://www.balabit.hu/pgpkey.txt

--ew6BAiZeqk4r7MaW
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="patch-1.1.28-1.1.29.gz"
Content-Transfer-Encoding: base64

H4sICBfnljcAA3BhdGNoLTEuMS4yOC0xLjEuMjkA1Tz7f9rGkz/DXzGlbgLmYb1AAup8azs4
9cWPnu1cLxdSKguBdcGISsIxdf2/3+xD0uoFuMldc/4ki9idnZmdnae0YuxMJtBceufgr/yZ
O23Op025JbcUY+/o1pxP7VN3mh7qxkPlZrO5ZmbpajmHf1vOQDZAVntatyfLIHe73XK9Xl+D
tnR9u6TzFAVkuae2e4rK5v30EzTlhgp1uSHr8NNP5Trpbkp6E0Hh0JyZf/pwZd3aznhmewA/
3mCH89MNDtw4Qet2+apcL9dLu2COx/YYbM9zPUBw65Mzn0LggmdPLfduUa0l4PxbezaDmfPJ
Bh8BZzb8sXQDM3DcOdyZ3iefQEecyM/i5GZ5t0AS97bnE3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