diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-05-30 08:37:35 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-05-30 08:37:35 +0200 |
commit | 7c12000d865b0885c2d5125f14742a54e41a270c (patch) | |
tree | e4983ca443c21fa54c20987ca39f523f32bf7554 /tools/syslogd.c | |
parent | a9223031a6effeaf3673beb752c12a29f5e8f83d (diff) | |
download | rsyslog-7c12000d865b0885c2d5125f14742a54e41a270c.tar.gz rsyslog-7c12000d865b0885c2d5125f14742a54e41a270c.tar.xz rsyslog-7c12000d865b0885c2d5125f14742a54e41a270c.zip |
regression fix: config validation code affected by recent changes
did not return with proper return value
Diffstat (limited to 'tools/syslogd.c')
-rw-r--r-- | tools/syslogd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/syslogd.c b/tools/syslogd.c index 4fe6fa26..4c512ac2 100644 --- a/tools/syslogd.c +++ b/tools/syslogd.c @@ -2165,6 +2165,10 @@ int realMain(int argc, char **argv) "startup with a dirty config.\n"); exit(2); } + if(iConfigVerify) { + /* a bit dirty, but useful... */ + exit(1); + } localRet = RS_RET_OK; } CHKiRet(localRet); |