summaryrefslogtreecommitdiffstats
path: root/runtime
Commit message (Collapse)AuthorAgeFilesLines
* bugfix(minor): handling of extremely large strings in dbgprintf() fixedRainer Gerhards2010-03-151-0/+9
| | | | | | Previously, it could lead to garbagge output and, in extreme cases, also to segfaults. Note: this was a problem only when debug output was actually enabled, so it caused no problem in production use.
* added more tests to testbench and improved testing toolsRainer Gerhards2010-03-111-1/+1
|
* Merge branch 'v4-stable' into v4-stable-nextRainer Gerhards2010-03-102-5/+11
|\
| * fixed regression introduced with previous commitRainer Gerhards2010-03-102-5/+11
| | | | | | | | | | | | disk queue mode did no longer work correctly. A side-effect of this commit here is slightly cleaned-up (and more elegant) code for circular files.
* | some cosmetic changesRainer Gerhards2010-03-101-9/+9
|/ | | | | | note that a buffer size calculation was done wrong, but this was cosmetic because our buffers currently all use byte size, so even though the formula was wrong, the result was correct.
* bugfixes and testbench improvementRainer Gerhards2010-03-101-8/+9
| | | | | | | | | | - improved testbench - bugfix: potential data loss during file stream shutdown - bugfix: potential problems during file stream shutdown The shutdown/close sequence was not clean, what potentially (but unlikely) could lead to some issues. We have not been able to describe any fatal cases, but there was some bug potential. Sequence has now been straighted out.
* bugfix: potential problem (loop, abort) when file write error occuredRainer Gerhards2010-03-091-0/+1
| | | | | | | | | | When a write error occured in stream.c, variable iWritten had the error code but this was handled as if it were the actual number of bytes written. That was used in pointer arithmetic later on, and thus could lead to all sorts of problems. However, this could only happen if the error was EINTR or the file in question was a tty. All other cases were handled properly. Now, iWritten is reset to zero in such cases, resulting in proper retries.
* added new property replacer option "date-rfc3164-buggyday"Rainer Gerhards2010-03-083-7/+17
| | | | | primarily to ease migration from syslog-ng. See property replacer doc for details. [backport from 5.5.3 because urgently needed by some]
* Fix Large File Support (LFS) support (bug #182)Yann Droneaud2010-03-041-9/+0
| | | | | | | | | - _FILE_OFFSET_BITS must be defined before including any other system headers otherwise it does nothing. - Don't define it in rsyslog.h, let it be defined in config.h, and let ./configure script enable LFS since Autoconf provides a portable macro to enable LFS support : AC_SYS_LARGEFILE
* Includes "config.h" before any other header.Yann Droneaud2010-03-041-1/+1
| | | | | | | For consistency, ./configure generated "config.h" must be the first header include through out the project. Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* Merge branch 'v3-stable' into v4-stableRainer Gerhards2010-03-011-7/+30
|\ | | | | | | | | Conflicts: runtime/ctok.c
| * bugfix: comment char ('#') in literal terminated script parsingRainer Gerhards2010-03-011-7/+30
| | | | | | | | | | ...and thus could not be used. but tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=119
* | cleanup: removed debug messages that accidently made it into the commitRainer Gerhards2010-03-012-2/+1
| |
* | make $ActonFileDefaultTemplate available to ompipeRainer Gerhards2010-03-011-0/+2
| | | | | | | | | | | | | | | | | | This was not honored by the new ompipe module, because it is a local file directive (it was applied to pipes as a side-effect of using the same module for pipes and files...). I now made this a global, so that semantics are the same as previously. Not really nice, but probably the best thing to do in the current situation (everything else would involve much more overhead --- leave that for the new config system).
* | message parser fixes and testbench enhancementsRainer Gerhards2010-02-222-6/+13
| | | | | | | | | | | | | | | | | | - improved testbench to contain samples for totally malformed messages which miss parts of the message content - bugfix: some malformed messages could lead to a missing LF inside files or some other missing parts of the template content. - bugfix: if a message ended immediately with a hostname, the hostname was mistakenly interpreted as TAG, and localhost be used as hostname
* | bugfix: message without MSG part could case a segfaultRainer Gerhards2010-02-221-3/+12
| | | | | | | | | | | | | | [backported from v5 commit 98d1ed504ec001728955a5bcd7916f64cd85f39f] This actually was a "recent" regression, but I did not realize that it was introduced by the performance optimization in v4-devel. Shame on me for having two devel versions at the same time...
* | several bugfixes for the property replacerRainer Gerhards2010-02-081-44/+58
| | | | | | | | | | | | | | | | | | | | - bugfix: property replacer returned invalid parameters under some (unusual) conditions. In extreme cases, this could lead to garbled logs and/or a system failure. - bugfix: invalid length returned (often) when using regular expressions inside the property replacer - bugfix: submatch regex in property replacer did not honor "return 0 on no match" config case
* | Merge branch 'v4-stable' into v4-betaRainer Gerhards2010-02-042-3/+8
|\ \
| * | bugfix: several smaller bugs resolved after flexelint reviewvarmojfekoj2010-02-043-4/+9
| | | | | | | | | | | | Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
| * | bugfix: potential segfault on queue shutdownvarmojfekoj2010-01-261-9/+14
| | | | | | | | | | | | Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | | did some adoptions necessary to use the bugfix with v4-beta code baseRainer Gerhards2010-01-261-6/+6
| | |
* | | Merge branch 'queuepatch' into v4-betanewRainer Gerhards2010-01-261-10/+15
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: runtime/queue.c
| * | | bugfixes for potential segfaults during queue shutdownvarmojfekoj2010-01-261-9/+14
| |/ / | | | | | | | | | | | | | | | (bugs require certain non-standard settings to appear) Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | | bugfix: blanks inside file names did not terminate file name parsing.Rainer Gerhards2010-01-191-1/+2
| | | | | | | | | | | | | | | | | | 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 hangs when writing to a named pipe which nobody was reading.Rainer Gerhards2010-01-152-4/+12
| | | | | | | | | | | | Thanks to Michael Biebl for reporting this bug.
* | | bugfix: hostname accidently set to IP address for some message sourcesRainer Gerhards2009-11-301-1/+1
| | | | | | | | | | | | for example imudp. Thanks to Anton for reporting this bug.
* | | bugfix (kind of): check if TCP connection is still alive if using TLSJonathan Bond-Caron2009-11-251-1/+4
| | | | | | | | | | | | Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | | Merge branch 'v4-stable' into v4-betaRainer Gerhards2009-11-172-2/+5
|\| |
| * | Merge branch 'v3-stable' into v4-stableRainer Gerhards2009-11-172-2/+5
| |\| | | | | | | | | | | | | | | | Conflicts: doc/rsyslog_conf.html runtime/net.c
| | * correcting -q/-Q patch - was invalidRainer Gerhards2009-11-122-2/+5
| | | | | | | | | | | | | | | This is the correct patch. The previous one solved the segfault, but disabled the -q/Q options.
* | | Merge branch 'v4-stable' into v4-betaRainer Gerhards2009-11-121-2/+2
|\| |
| * | Merge branch 'v3-stable' into v4-stableRainer Gerhards2009-11-121-2/+2
| |\|
| | * bugfix: segfault on startup when -q or -Q option was givenRainer Gerhards2009-11-121-2/+2
| | | | | | | | | | | | | | | bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=157 Thanks to Jonas Nogueira for reporting this bug.
* | | added a so-called "On Demand Debug" modeRainer Gerhards2009-11-101-0/+9
| | | | | | | | | | | | | | | | | | in which debug output can be generated only after the process has started, but not right from the beginning. This is assumed to be useful for hard-to-find bugs. Also improved the doc on the debug system.
* | | bugfix: named pipes did no longer work (they always got an open error)Rainer Gerhards2009-11-051-0/+1
| | | | | | | | | | | | this was a regression from the omfile rewrite in 4.5.0
* | | Merge branch 'v4-stable' into v4-betaRainer Gerhards2009-10-211-2/+0
|\| | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html plugins/imrelp/imrelp.c
| * | Merge branch 'v3-stable' into v4-stableRainer Gerhards2009-10-201-2/+0
| |\|
| | * bugfix: potential hang condition on queue shutdownRainer Gerhards2009-10-201-2/+0
| | |
| * | RFC5424 formatted messages with only structured data and no MSG part were ↵Rainer Gerhards2009-10-012-1/+6
| | | | | | | | | | | | | | | | | | | | | improperly handled. This was a regression of one of the last bugfixes, so no previously released version contained this bug (thus it does not show up in the ChangeLog).
* | | Merge branch 'aaron' into v4-betaRainer Gerhards2009-10-081-1/+1
|\ \ \
| * | | bugfix: debug string larger than 1K were improperly displayed.Rainer Gerhards2009-10-081-1/+1
| | | | | | | | | | | | | | | | Max size is now 32K.
* | | | Merge branch 'aaron' into v4-betaRainer Gerhards2009-10-051-1/+1
|\| | |
| * | | bugfix[minor]: CHKiRet improperly usedRainer Gerhards2009-10-021-1/+1
| | | |
* | | | Merge branch 'aaron' into v4-betaRainer Gerhards2009-10-021-0/+1
|\| | | | | | | | | | | | | | | | | | | Conflicts: runtime/rsyslog.h
| * | | bumped version number, corrected error message code (minor nit)Rainer Gerhards2009-10-011-0/+1
| | | |
* | | | Merge branch 'v4-stable' into v4-beta & BUGFIXRainer Gerhards2009-10-014-41/+96
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: configure.ac doc/manual.html runtime/datetime.h runtime/parser.c runtime/rsyslog.h tools/syslogd.c v4-stable had a bug with RFC5424-formatted structured data, which showed was detected by the enhanced automatted testbench of v4-beta.
| * | bugfix: invalid handling of zero-sized messagesRainer Gerhards2009-09-291-2/+4
| | | | | | | | | | | | could lead to mis-addressing and potential memory corruption/segfault
| * | bugfix: random data could be appended to message, possibly causing segfaultsRainer Gerhards2009-09-244-42/+88
| | |
* | | minor cleanup & preparation for 4.5.4v4.5.4Rainer Gerhards2009-09-291-9/+0
| | |
* | | bugfix: this morning's race patch was incomplete, completing nowRainer Gerhards2009-09-241-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | we needed to release ALL resources (including file handles!) only after the the async writer thread has terminated (else it may access them). In this case, we had a file handle leak, because the handle was sometimes only opened in the async writer, but the close was attempted before the writer even started (in some cases).