summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-09-12 15:17:47 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-09-12 15:17:47 +0200
commit1e819a8afe9494cc760196ac91f3b617bc073de9 (patch)
treec0701f10aecefb3a60af67c310b33b3d2bedeb0a /tools
parent262f61d869b95f63b393ae48d683b13e70322478 (diff)
parent4e86efaf0e20626d8f740fcff131bfd38453de4d (diff)
downloadrsyslog-1e819a8afe9494cc760196ac91f3b617bc073de9.tar.gz
rsyslog-1e819a8afe9494cc760196ac91f3b617bc073de9.tar.xz
rsyslog-1e819a8afe9494cc760196ac91f3b617bc073de9.zip
Merge branch 'beta'
Conflicts: runtime/rsyslog.h tools/syslogd.c
Diffstat (limited to 'tools')
-rw-r--r--tools/syslogd.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/tools/syslogd.c b/tools/syslogd.c
index 96fbee05..0f3e7dea 100644
--- a/tools/syslogd.c
+++ b/tools/syslogd.c
@@ -346,7 +346,7 @@ static rsRetVal resetConfigVariables(uchar __attribute__((unused)) *pp, void __a
iMainMsgQHighWtrMark = 8000;
iMainMsgQLowWtrMark = 2000;
iMainMsgQDiscardMark = 9800;
- iMainMsgQDiscardSeverity = 4;
+ iMainMsgQDiscardSeverity = 8;
iMainMsgQueMaxFileSize = 1024 * 1024;
iMainMsgQueueNumWorkers = 1;
iMainMsgQPersistUpdCnt = 0;
@@ -1415,13 +1415,18 @@ static int parseLegacySyslogMsg(msg_t *pMsg, int flags)
*/
if(datetime.ParseTIMESTAMP3339(&(pMsg->tTIMESTAMP), &p2parse) == TRUE) {
/* we are done - parse pointer is moved by ParseTIMESTAMP3339 */;
- } else if(datetime.ParseTIMESTAMP3164(&(pMsg->tTIMESTAMP), p2parse) == TRUE) {
- p2parse += 16;
+ } else if(datetime.ParseTIMESTAMP3164(&(pMsg->tTIMESTAMP), &p2parse) == TRUE) {
+ /* we are done - parse pointer is moved by ParseTIMESTAMP3164 */;
} else if(*p2parse == ' ') { /* try to see if it is slighly malformed - HP procurve seems to do that sometimes */
- if(datetime.ParseTIMESTAMP3164(&(pMsg->tTIMESTAMP), p2parse+1) == TRUE) {
+ ++p2parse; /* move over space */
+ if(datetime.ParseTIMESTAMP3164(&(pMsg->tTIMESTAMP), &p2parse) == TRUE) {
/* indeed, we got it! */
- p2parse += 17;
+ /* we are done - parse pointer is moved by ParseTIMESTAMP3164 */;
} else {
+ /* parse pointer needs to be restored, as we moved it off-by-one
+ * for this try.
+ */
+ --p2parse;
flags |= ADDDATE;
}
} else {