summaryrefslogtreecommitdiffstats
path: root/msg.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-04-03 08:57:44 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-04-03 08:57:44 +0000
commit4419e1068aff9e88ed419f6439f577bb0960f7a0 (patch)
tree936626d9191498920a346501c7a856675995c59e /msg.c
parentf1c9f5da133f4c6c8b52c5948cc0f61e32c210f1 (diff)
downloadrsyslog-4419e1068aff9e88ed419f6439f577bb0960f7a0.tar.gz
rsyslog-4419e1068aff9e88ed419f6439f577bb0960f7a0.tar.xz
rsyslog-4419e1068aff9e88ed419f6439f577bb0960f7a0.zip
bugfix: $hostname and $fromhost in RainerScript did not work
Diffstat (limited to 'msg.c')
-rw-r--r--msg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/msg.c b/msg.c
index 76ea2f72..7c020a61 100644
--- a/msg.c
+++ b/msg.c
@@ -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")) {