diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-05-28 18:34:17 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-05-28 18:34:17 +0200 |
commit | d7c98e7a6ec28a6c76bccf16d83f36b34a705410 (patch) | |
tree | 66807ada649997bb6e5c8928a6a95870f43d926e /runtime | |
parent | c6a2dafb2fc5d186ef146035f270a4819075eab1 (diff) | |
parent | 8d8befaeca0d9ed3f096780e499a3231f16585c4 (diff) | |
download | rsyslog-d7c98e7a6ec28a6c76bccf16d83f36b34a705410.tar.gz rsyslog-d7c98e7a6ec28a6c76bccf16d83f36b34a705410.tar.xz rsyslog-d7c98e7a6ec28a6c76bccf16d83f36b34a705410.zip |
Merge branch 'beta' into master
Conflicts:
tests/Makefile.am
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/conf.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/conf.c b/runtime/conf.c index 27ab8bb4..602a5eb1 100644 --- a/runtime/conf.c +++ b/runtime/conf.c @@ -400,6 +400,7 @@ processConfFile(uchar *pConfFile) uchar cbuf[CFGLNSIZ]; uchar *cline; int i; + int bHadAnError = 0; ASSERT(pConfFile != NULL); if((cf = fopen((char*)pConfFile, "r")) == NULL) { @@ -461,6 +462,7 @@ processConfFile(uchar *pConfFile) snprintf((char*)szErrLoc, sizeof(szErrLoc) / sizeof(uchar), "%s, line %d", pConfFile, iLnNbr); errmsg.LogError(0, NO_ERRCODE, "the last error occured in %s", (char*)szErrLoc); + bHadAnError = 1; } } @@ -480,6 +482,10 @@ finalize_it: dbgprintf("error %d processing config file '%s'; os error (if any): %s\n", iRet, pConfFile, errStr); } + + if(bHadAnError && (iRet == RS_RET_OK)) { /* a bit dirty, enhance in future releases */ + iRet = RS_RET_ERR; + } RETiRet; } |