diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-07-06 07:52:50 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-07-06 07:52:50 +0200 |
commit | f09ee69ee1b7f8c098d0720c8e85a6753cc7d342 (patch) | |
tree | 86900cf5a304a2a442e2e36f11fd5561fd10e70d /tools | |
parent | 4b29a27782f74cb3a47be639d62e036a8837a6d6 (diff) | |
download | rsyslog-f09ee69ee1b7f8c098d0720c8e85a6753cc7d342.tar.gz rsyslog-f09ee69ee1b7f8c098d0720c8e85a6753cc7d342.tar.xz rsyslog-f09ee69ee1b7f8c098d0720c8e85a6753cc7d342.zip |
added support for the ":omusrmsg:" syntax in configuring user messages
Diffstat (limited to 'tools')
-rw-r--r-- | tools/omusrmsg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/omusrmsg.c b/tools/omusrmsg.c index 768baca7..44b85bd9 100644 --- a/tools/omusrmsg.c +++ b/tools/omusrmsg.c @@ -278,7 +278,9 @@ CODE_STD_STRING_REQUESTparseSelectorAct(1) * [a-zA-Z0-9_.] * plus '*' for wall */ - if(!*p || !((*p >= 'a' && *p <= 'z') || (*p >= 'A' && *p <= 'Z') + if(!strncmp((char*) p, ":omusrmsg:", sizeof(":omusrmsg:") - 1)) { + p += sizeof(":omusrmsg:") - 1; /* eat indicator sequence (-1 because of '\0'!) */ + } else if(!*p || !((*p >= 'a' && *p <= 'z') || (*p >= 'A' && *p <= 'Z') || (*p >= '0' && *p <= '9') || *p == '_' || *p == '.' || *p == '*')) ABORT_FINALIZE(RS_RET_CONFLINE_UNPROCESSED); |