summaryrefslogtreecommitdiffstats
path: root/grammar/rainerscript.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-01-08 13:07:47 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-01-08 13:07:47 +0100
commit84f959d4f0dfb6a9e1dda43e17a97402b55d3314 (patch)
tree3d0d49eebd701cbc1690501688794f7eddbc7696 /grammar/rainerscript.c
parent7febb07e2a587c0646c155796ed1fa91f89682fb (diff)
parentbbb2066d17824f366d0f83a010cae6ebe99d4fa0 (diff)
downloadrsyslog-84f959d4f0dfb6a9e1dda43e17a97402b55d3314.tar.gz
rsyslog-84f959d4f0dfb6a9e1dda43e17a97402b55d3314.tar.bz2
rsyslog-84f959d4f0dfb6a9e1dda43e17a97402b55d3314.zip
Merge branch 'v7-stable'
Diffstat (limited to 'grammar/rainerscript.c')
-rw-r--r--grammar/rainerscript.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/grammar/rainerscript.c b/grammar/rainerscript.c
index 8eddf82f..8c79cc5d 100644
--- a/grammar/rainerscript.c
+++ b/grammar/rainerscript.c
@@ -614,17 +614,17 @@ doGetFileCreateMode(struct nvlst *valnode, struct cnfparamdescr *param,
if(es_strlen(valnode->val.d.estr) == 4) {
c = es_getBufAddr(valnode->val.d.estr);
- if(!( (c[0] == '0')
- && (c[1] >= '0' && c[1] <= '7')
- && (c[2] >= '0' && c[2] <= '7')
- && (c[3] >= '0' && c[3] <= '7') ) ) {
+ if( (c[0] == '0')
+ && (c[1] >= '0' && c[1] <= '7')
+ && (c[2] >= '0' && c[2] <= '7')
+ && (c[3] >= '0' && c[3] <= '7') ) {
fmtOK = 1;
}
}
if(fmtOK) {
val->val.datatype = 'N';
- val->val.d.n = (c[1]-'0') * 64 + (c[2]-'0') * 8 + (c[3]-'0');;
+ val->val.d.n = (c[1]-'0') * 64 + (c[2]-'0') * 8 + (c[3]-'0');
} else {
cstr = es_str2cstr(valnode->val.d.estr, NULL);
parser_errmsg("file modes need to be specified as "