diff options
author | Milan Bartos <mbartos@redhat.com> | 2012-07-31 17:16:51 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-10-10 14:15:57 +0200 |
commit | 18e1267d96bf37a3737d38885304a2dc1365abde (patch) | |
tree | 1c78b76c6eebc64e58e527a7f8c67f92526cd467 /plugins/imuxsock | |
parent | 80466e20d19a5fcf7b9d8798b3d7afb42f7e98d7 (diff) | |
download | rsyslog-18e1267d96bf37a3737d38885304a2dc1365abde.tar.gz rsyslog-18e1267d96bf37a3737d38885304a2dc1365abde.tar.xz rsyslog-18e1267d96bf37a3737d38885304a2dc1365abde.zip |
fix problem with cutting first 16 characters from message with bAnnotate on modified: plugins/imuxsock/imuxsock.c
Diffstat (limited to 'plugins/imuxsock')
-rw-r--r-- | plugins/imuxsock/imuxsock.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/imuxsock/imuxsock.c b/plugins/imuxsock/imuxsock.c index 76474724..2d9d4b5d 100644 --- a/plugins/imuxsock/imuxsock.c +++ b/plugins/imuxsock/imuxsock.c @@ -768,7 +768,11 @@ SubmitMsg(uchar *pRcv, int lenRcv, lstn_t *pLstn, struct ucred *cred, struct tim fixPID(bufParseTAG, &i, cred); MsgSetTAG(pMsg, bufParseTAG, i); - MsgSetMSGoffs(pMsg, pMsg->iLenRawMsg - lenMsg); + if (pLstn->bAnnotate) { + MsgSetMSGoffs(pMsg, pMsg->iLenRawMsg - lenMsg - 16); + } else { + MsgSetMSGoffs(pMsg, pMsg->iLenRawMsg - lenMsg); + } if(pLstn->bParseHost) { pMsg->msgFlags = pLstn->flags | PARSE_HOSTNAME; |