summaryrefslogtreecommitdiffstats
path: root/ChangeLog
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-03-09 18:07:31 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-03-09 18:07:31 +0100
commit3d80d6ba301e4d26b646c84d621ebe880ebc513f (patch)
tree66564978a733aeb412e825d64783a21acd3ef4fc /ChangeLog
parent7916735ba6890f67d49077975b0d635dc9931380 (diff)
downloadrsyslog-3d80d6ba301e4d26b646c84d621ebe880ebc513f.tar.gz
rsyslog-3d80d6ba301e4d26b646c84d621ebe880ebc513f.tar.xz
rsyslog-3d80d6ba301e4d26b646c84d621ebe880ebc513f.zip
bugfix: potential problem (loop, abort) when file write error occured
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.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog8
1 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 321963dd..5f495768 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
---------------------------------------------------------------------------
Version 4.6.2 [v4-stable] (rgerhards), 2010-03-??
+- bugfix: potential problem (loop, abort) when file write error occured
+ 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.
- bugfix: $omfileFlushOnTXEnd was turned on when set to off and vice
versa due to an invalid check
- added new property replacer option "date-rfc3164-buggyday" primarily