diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-03 08:57:44 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-03 08:57:44 +0000 |
commit | 4419e1068aff9e88ed419f6439f577bb0960f7a0 (patch) | |
tree | 936626d9191498920a346501c7a856675995c59e /msg.c | |
parent | f1c9f5da133f4c6c8b52c5948cc0f61e32c210f1 (diff) | |
download | rsyslog-4419e1068aff9e88ed419f6439f577bb0960f7a0.tar.gz rsyslog-4419e1068aff9e88ed419f6439f577bb0960f7a0.tar.bz2 rsyslog-4419e1068aff9e88ed419f6439f577bb0960f7a0.zip |
bugfix: $hostname and $fromhost in RainerScript did not work
Diffstat (limited to 'msg.c')
-rw-r--r-- | msg.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1606,9 +1606,11 @@ char *MsgGetProp(msg_t *pMsg, struct templateEntry *pTpe, pRes = getRawMsg(pMsg); } else if(!strcmp((char*) pName, "UxTradMsg")) { pRes = getUxTradMsg(pMsg); - } else if(!strcmp((char*) pName, "FROMHOST")) { + } else if( !strcmp((char*) pName, "FROMHOST") + || !strcmp((char*) pName, "fromhost")) { pRes = getRcvFrom(pMsg); } else if(!strcmp((char*) pName, "source") + || !strcmp((char*) pName, "hostname") || !strcmp((char*) pName, "HOSTNAME")) { pRes = getHOSTNAME(pMsg); } else if(!strcmp((char*) pName, "syslogtag")) { |