summaryrefslogtreecommitdiffstats
path: root/runtime/cfsysline.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-01-19 14:58:36 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2012-01-19 14:58:36 +0100
commit7ed586df12b8d2f6f70f21ab08bd99c71850ba6c (patch)
tree4fee15946d3662e854cd6ba4ce825da00ea7a0fd /runtime/cfsysline.c
parent535d6cf0b8fe2423eee3fd670bc1e944b231e827 (diff)
downloadrsyslog-7ed586df12b8d2f6f70f21ab08bd99c71850ba6c.tar.gz
rsyslog-7ed586df12b8d2f6f70f21ab08bd99c71850ba6c.tar.xz
rsyslog-7ed586df12b8d2f6f70f21ab08bd99c71850ba6c.zip
refactor: removing v6.1 scoping code
Diffstat (limited to 'runtime/cfsysline.c')
-rw-r--r--runtime/cfsysline.c30
1 files changed, 11 insertions, 19 deletions
diff --git a/runtime/cfsysline.c b/runtime/cfsysline.c
index 870c5faf..7814e86a 100644
--- a/runtime/cfsysline.c
+++ b/runtime/cfsysline.c
@@ -937,25 +937,17 @@ rsRetVal processCfSysLineCommand(uchar *pCmdName, uchar **p)
llCookieCmdHdlr = NULL;
bWasOnceOK = 0;
while((iRetLL = llGetNextElt(&pCmd->llCmdHdlrs, &llCookieCmdHdlr, (void*)&pCmdHdlr)) == RS_RET_OK) {
- /* check if handler is valid in current scope */
- if(pCmdHdlr->eConfObjType == eConfObjAlways ||
- (bConfStrictScoping == 0 && currConfObj == eConfObjGlobal) ||
- pCmdHdlr->eConfObjType == currConfObj) {
- /* for the time being, we ignore errors during handlers. The
- * reason is that handlers are independent. An error in one
- * handler does not necessarily mean that another one will
- * fail, too. Later, we might add a config variable to control
- * this behaviour (but I am not sure if that is really
- * necessary). -- rgerhards, 2007-07-31
- */
- pHdlrP = *p;
- if((iRet = cslchCallHdlr(pCmdHdlr, &pHdlrP)) == RS_RET_OK) {
- bWasOnceOK = 1;
- pOKp = pHdlrP;
- }
- } else {
- errmsg.LogError(0, RS_RET_CONF_INVLD_SCOPE, "config command invalid for current scope");
- bHadScopingErr = 1;
+ /* for the time being, we ignore errors during handlers. The
+ * reason is that handlers are independent. An error in one
+ * handler does not necessarily mean that another one will
+ * fail, too. Later, we might add a config variable to control
+ * this behaviour (but I am not sure if that is really
+ * necessary). -- rgerhards, 2007-07-31
+ */
+ pHdlrP = *p;
+ if((iRet = cslchCallHdlr(pCmdHdlr, &pHdlrP)) == RS_RET_OK) {
+ bWasOnceOK = 1;
+ pOKp = pHdlrP;
}
}