Blame SOURCES/rsyslog-7.4.7-bz1054171-omjournal-warning.patch
|
|
92fbf8 |
From e921bfe82068a1767311181ad7f4c78ed86e2577 Mon Sep 17 00:00:00 2001
|
|
|
92fbf8 |
From: Tomas Heinrich <theinric@redhat.com>
|
|
|
92fbf8 |
Date: Thu, 16 Jan 2014 11:43:55 +0100
|
|
|
92fbf8 |
Subject: [PATCH] bugfix: invert the logic for issuing a warning
|
|
|
92fbf8 |
|
|
|
92fbf8 |
---
|
|
|
92fbf8 |
plugins/omjournal/omjournal.c | 2 +-
|
|
|
92fbf8 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
92fbf8 |
|
|
|
92fbf8 |
diff --git a/plugins/omjournal/omjournal.c b/plugins/omjournal/omjournal.c
|
|
|
92fbf8 |
index 160c369..937d277 100644
|
|
|
92fbf8 |
--- a/plugins/omjournal/omjournal.c
|
|
|
92fbf8 |
+++ b/plugins/omjournal/omjournal.c
|
|
|
92fbf8 |
@@ -153,7 +153,7 @@ ENDdoAction
|
|
|
92fbf8 |
BEGINparseSelectorAct
|
|
|
92fbf8 |
CODESTARTparseSelectorAct
|
|
|
92fbf8 |
CODE_STD_STRING_REQUESTparseSelectorAct(1)
|
|
|
92fbf8 |
- if(strncmp((char*) p, ":omjournal:", sizeof(":omjournal:") - 1)) {
|
|
|
92fbf8 |
+ if(!strncmp((char*) p, ":omjournal:", sizeof(":omjournal:") - 1)) {
|
|
|
92fbf8 |
errmsg.LogError(0, RS_RET_LEGA_ACT_NOT_SUPPORTED,
|
|
|
92fbf8 |
"omjournal supports only v6+ config format, use: "
|
|
|
92fbf8 |
"action(type=\"omjournal\" ...)");
|
|
|
92fbf8 |
--
|
|
|
92fbf8 |
1.8.4.3
|
|
|
92fbf8 |
|