SOURCES: syslog-ng-level.patch - fix level ranges too
qboosh
qboosh at pld-linux.org
Sat Mar 25 23:23:16 CET 2006
Author: qboosh Date: Sat Mar 25 22:23:16 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- fix level ranges too
---- Files affected:
SOURCES:
syslog-ng-level.patch (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SOURCES/syslog-ng-level.patch
diff -u SOURCES/syslog-ng-level.patch:1.1 SOURCES/syslog-ng-level.patch:1.2
--- SOURCES/syslog-ng-level.patch:1.1 Sat Mar 25 23:10:25 2006
+++ SOURCES/syslog-ng-level.patch Sat Mar 25 23:23:11 2006
@@ -1,6 +1,22 @@
--- syslog-ng-1.9.9/src/cfg-grammar.y.orig 2006-02-26 09:31:44.000000000 +0100
+++ syslog-ng-1.9.9/src/cfg-grammar.y 2006-03-25 23:05:27.000126000 +0100
-@@ -814,7 +814,7 @@
+@@ -787,15 +787,11 @@
+ msg_error("Warning: Unknown priority level",
+ evt_tag_str("priority", $1),
+ NULL);
+- else
+- r1 = sl_levels[r1].value;
+ r2 = syslog_lookup_level($3);
+ if (r2 == -1)
+ msg_error("Warning: Unknown priority level",
+ evt_tag_str("priority", $1),
+ NULL);
+- else
+- r2 = sl_levels[r2].value;
+ if (r1 != -1 && r2 != -1)
+ $$ = syslog_make_range(r1, r2);
+ else
+@@ -814,7 +810,7 @@
$$ = 0;
}
else
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/syslog-ng-level.patch?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list