summaryrefslogtreecommitdiffstats
path: root/template.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-07-18 15:46:00 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-07-18 15:46:00 +0200
commit71e4eebdf1f34c9fb10b3a8d7462ad624f740c10 (patch)
tree01d71323e0bac815f92191f5b7e36d899aed7d18 /template.c
parent37bac26f6edb2104829ed1b97061753530ecbdf8 (diff)
parentd45a286f2dee3c3d5aefef1ac16a02578c95f574 (diff)
downloadrsyslog-71e4eebdf1f34c9fb10b3a8d7462ad624f740c10.tar.gz
rsyslog-71e4eebdf1f34c9fb10b3a8d7462ad624f740c10.tar.bz2
rsyslog-71e4eebdf1f34c9fb10b3a8d7462ad624f740c10.zip
Merge branch 'beta'
Diffstat (limited to 'template.c')
-rw-r--r--template.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/template.c b/template.c
index b94af60e..2fe23710 100644
--- a/template.c
+++ b/template.c
@@ -446,6 +446,8 @@ static void doOptions(unsigned char **pp, struct templateEntry *pTpe)
pTpe->data.field.eCaseConv = tplCaseConvLower;
} else if(!strcmp((char*)Buf, "uppercase")) {
pTpe->data.field.eCaseConv = tplCaseConvUpper;
+ } else if(!strcmp((char*)Buf, "sp-if-no-1st-sp")) {
+ pTpe->data.field.options.bSPIffNo1stSP = 1;
} else if(!strcmp((char*)Buf, "escape-cc")) {
pTpe->data.field.options.bEscapeCC = 1;
} else if(!strcmp((char*)Buf, "drop-cc")) {
@@ -1085,6 +1087,15 @@ void tplPrintList(void)
if(pTpe->data.field.options.bSpaceCC) {
dbgprintf("[replace control-characters with space] ");
}
+ if(pTpe->data.field.options.bSecPathDrop) {
+ dbgprintf("[slashes are dropped] ");
+ }
+ if(pTpe->data.field.options.bSecPathReplace) {
+ dbgprintf("[slashes are replaced by '_'] ");
+ }
+ if(pTpe->data.field.options.bSPIffNo1stSP) {
+ dbgprintf("[SP iff no first SP] ");
+ }
if(pTpe->data.field.options.bDropLastLF) {
dbgprintf("[drop last LF in msg] ");
}