runtime-parser.c.patch revision 4448
319N/A# This patch is a fix for proper uncompression
319N/A# source: written internally
319N/A# Should be sent upstream, but hasn't been.
319N/A# Bug has existed a long time (probably since rsyslog implemented compression),
319N/A# last noticed in 8.4.0
319N/A--- rsyslog/runtime/parser.c 2014-08-18 02:14:06.000000000 -0700
319N/A+++ rsyslog/runtime/parser.c 2014-09-18 14:46:49.068679264 -0700
319N/A@@ -336,8 +336,10 @@
319N/A
319N/A /* we first need to check if we have a compressed record. If so,
319N/A * we must decompress it.
319N/A+ * If NO_PRI_IN_RAW is set, this is a local Solaris message and
319N/A+ * therefore not compressed (though it may well begin with 'z'!).
319N/A */
319N/A- if(lenMsg > 0 && *pszMsg == 'z') { /* compressed data present? (do NOT change order if conditions!) */
319N/A+ if(lenMsg > 0 && *pszMsg == 'z' && pMsg->msgFlags & NO_PRI_IN_RAW == 0) { /* compressed data present? (do NOT change order if conditions!) */
319N/A /* we have compressed data, so let's deflate it. We support a maximum
319N/A * message size of iMaxLine. If it is larger, an error message is logged
319N/A * and the message is dropped. We do NOT try to decompress larger messages
319N/A