Package: syslog-ng
Version: 2.0rc1
Syslog-ng on PowerPC does not treat facility filtering properly.
As a result, certain facilities are completely ignored in the conf; goes
into syslog.
It's because of the difference of 'char' type.
When you compile filter.c on PowerPC you will get the following messages :
filter.c: In function 'filter_facility_eval':
filter.c:200: warning: comparison is always true due to limited range of
data type
It may be resolved by this patch :
diff -cr syslog-ng-2.0rc1.orig/src/filter.c syslog-ng-2.0rc1/src/filter.c
*** syslog-ng-2.0rc1.orig/src/filter.c Mon Jun 12 08:33:57 2006
--- syslog-ng-2.0rc1/src/filter.c Fri Jul 28 11:11:38 2006
***************
*** 189,195 ****
}
else
{
! static gchar bitpos[32] =
{
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1,
--- 189,195 ----
}
else
{
! static gint8 bitpos[32] =
{
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1,
--
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]