diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-03 09:14:05 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-03 09:14:05 +0000 |
commit | 6b982c8e5dbfd54eff7e22291d7f63400ff3c555 (patch) | |
tree | 8fb229d9eda20ca93af30d17a9383f45acb58e7d /msg.c | |
parent | d0ca3acbf971141b8826d0bb3a184eaadb2804c1 (diff) | |
download | rsyslog-6b982c8e5dbfd54eff7e22291d7f63400ff3c555.tar.gz rsyslog-6b982c8e5dbfd54eff7e22291d7f63400ff3c555.tar.bz2 rsyslog-6b982c8e5dbfd54eff7e22291d7f63400ff3c555.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")) { |