summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-01-26 12:23:53 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-01-26 12:23:53 +0100
commit855f3492382cf59722b96813b25f68b034802157 (patch)
tree8ef0ccc51949cdc5d3805ed3bb5eed4b09e80089
parentb88c4885b4d2e7d6a4788c796a2f6c21eb0f43fc (diff)
parent7f4972b9fa132c7e5c8077f58e3e2845326884af (diff)
downloadrsyslog-855f3492382cf59722b96813b25f68b034802157.tar.gz
rsyslog-855f3492382cf59722b96813b25f68b034802157.tar.xz
rsyslog-855f3492382cf59722b96813b25f68b034802157.zip
Merge branch 'beta'
-rw-r--r--ChangeLog20
-rw-r--r--runtime/conf.c3
-rw-r--r--tools/syslogd.c1
3 files changed, 23 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 75193098..f667b1f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -40,6 +40,9 @@ Version 5.5.0 [DEVEL] (rgerhards), 2009-11-18
- doc: improved description of what loadable modules can do
---------------------------------------------------------------------------
Version 5.3.7 [BETA] (rgerhards), 2010-01-??
+- bugfix: potential segfaults during queue shutdown
+ (bugs require certain non-standard settings to appear)
+ Thanks to varmojfekoj for the patch [imported from 4.5.8]
- bugfix: rsyslog hangs when writing to a named pipe which nobody was
reading. Thanks to Michael Biebl for reporting this bug.
Bugzilla entry: http://bugzilla.adiscon.com/show_bug.cgi?id=169
@@ -363,6 +366,21 @@ Version 4.7.0 [v4-devel] (rgerhards), 2009-09-??
- bugfix: potential segfault when -p command line option was used
Thanks for varmojfekoj for pointing me at this bug.
---------------------------------------------------------------------------
+Version 4.5.8 [v4-beta] (rgerhards), 2010-01-??
+- bugfix: -d did not enable display of debug messages
+ regression from introduction of "debug on demand" mode
+ Thanks to Michael Biebl for reporting this bug
+- bugfix: blanks inside file names did not terminate file name parsing.
+ This could reslult in the whole rest of a line (including comments)
+ to be treated as file name in "write to file" actions.
+ Thanks to Jack for reporting this issue.
+- bugfix: rsyslog hang when writing to a named pipe which nobody was
+ reading. Thanks to Michael Biebl for reporting this bug.
+ Bugzilla entry: http://bugzilla.adiscon.com/show_bug.cgi?id=169
+- bugfix: potential segfaults during queue shutdown
+ (bugs require certain non-standard settings to appear)
+ Thanks to varmojfekoj for the patch
+---------------------------------------------------------------------------
Version 4.5.7 [v4-beta] (rgerhards), 2009-11-18
- added a so-called "On Demand Debug" mode, in which debug output can
be generated only after the process has started, but not right from
@@ -540,6 +558,8 @@ Version 4.4.3 [v4-stable] (rgerhards), 2009-10-??
This was a regression from the time() optimizations done in v4.
Bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=143
Thanks to Klaus Tachtler for reporting this bug.
+- bugfix: potential segfault on queue shutdown
+ Thanks to varmojfekoj for the patch.
- bugfix: potential hang condition on queue shutdown
[imported from v3-stable]
- bugfix: segfault on startup when -q or -Q option was given
diff --git a/runtime/conf.c b/runtime/conf.c
index d6e6ccf6..e7c1576f 100644
--- a/runtime/conf.c
+++ b/runtime/conf.c
@@ -567,6 +567,7 @@ finalize_it:
* rgerhards, 2007-07-25
* updated to include OMSR pointer -- rgerhards, 2007-07-27
* updated to include template name -- rgerhards, 2008-03-28
+ * rgerhards, 2010-01-19: file names end at the first space
*/
rsRetVal
cflineParseFileName(uchar* p, uchar *pFileName, omodStringRequest_t *pOMSR, int iEntry, int iTplOpts, uchar *pszTpl)
@@ -579,7 +580,7 @@ cflineParseFileName(uchar* p, uchar *pFileName, omodStringRequest_t *pOMSR, int
pName = pFileName;
i = 1; /* we start at 1 so that we reseve space for the '\0'! */
- while(*p && *p != ';' && i < MAXFNAME) {
+ while(*p && *p != ';' && *p != ' ' && i < MAXFNAME) {
*pName++ = *p++;
++i;
}
diff --git a/tools/syslogd.c b/tools/syslogd.c
index 1f7a29a6..967401d2 100644
--- a/tools/syslogd.c
+++ b/tools/syslogd.c
@@ -2506,6 +2506,7 @@ int realMain(int argc, char **argv)
iCompatibilityMode = atoi(optarg);
break;
case 'd': /* debug - must be handled now, so that debug is active during init! */
+ debugging_on = 1;
Debug = 1;
break;
case 'e': /* log every message (no repeat message supression) */