diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-26 08:25:42 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-26 08:25:42 +0000 |
commit | b33a62b92c57d6c613dfc6e427bbe1eed3af0e1c (patch) | |
tree | b6b9410b311fd4b417f02d23d638d50ac127be84 | |
parent | d839bc3fa3018e54ca82055988928c76fca98496 (diff) | |
download | rsyslog-b33a62b92c57d6c613dfc6e427bbe1eed3af0e1c.tar.gz rsyslog-b33a62b92c57d6c613dfc6e427bbe1eed3af0e1c.tar.bz2 rsyslog-b33a62b92c57d6c613dfc6e427bbe1eed3af0e1c.zip |
applied patch from varmojfekoj to fix an issue with compatibility mode and
default module directories (many thanks!)
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | syslogd.c | 4 |
2 files changed, 11 insertions, 2 deletions
@@ -2,6 +2,15 @@ Version 3.12.0 (rgerhards), 2008-02-?? - bugfix: gssapi libraries were still linked to rsyslog core, what should no longer be necessary. Applied fix by Michael Biebl to solve this. +- applied patch from varmojfekoj to fix an issue with compatibility + mode and default module directories (many thanks!): + I've also noticed a bug in the compatibility code; the problem is that + options are parsed before configuration file so options which need a + module to be loaded will currently ignore any $moddir directive. This + can be fixed by moving legacyOptsHook() after config file parsing. + (see the attached patch) This goes against the logical order of + processing, but the legacy options are only few and it doesn't seem to + be a problem. --------------------------------------------------------------------------- Version 3.11.5 (rgerhards), 2008-02-25 - new imgssapi module, changed imtcp module - this enables to load/package @@ -2834,8 +2834,6 @@ init(void) */ cfsysline((uchar*)"ResetConfigVariables"); - legacyOptsHook(); - /* open the configuration file */ if((iRet = processConfFile(ConfFile)) != RS_RET_OK) { /* rgerhards: this code is executed to set defaults when the @@ -2856,6 +2854,8 @@ init(void) selectorAddList(f); } + legacyOptsHook(); + /* we are now done with reading the configuration. This is the right time to * free some objects that were just needed for loading it. rgerhards 2005-10-19 */ |