summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-12-01 11:30:10 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2011-12-01 11:30:10 +0100
commitd2da5f39d0ca3881aface8e0a105efa130353a58 (patch)
treec44bfd4ccf17b347e4623c32f9db2d2b734bc39a
parentd34a25b78cb6524096a722bfff393b4797b4d478 (diff)
parentcb0087ec4736089d73d0368e683b652013483a52 (diff)
downloadrsyslog-d2da5f39d0ca3881aface8e0a105efa130353a58.tar.gz
rsyslog-d2da5f39d0ca3881aface8e0a105efa130353a58.tar.xz
rsyslog-d2da5f39d0ca3881aface8e0a105efa130353a58.zip
Merge branch 'v4-stable' into v5-stable
Conflicts: action.c
-rw-r--r--ChangeLog3
-rw-r--r--action.c2
-rw-r--r--runtime/nsd_gtls.c2
3 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 8d37cc5a..14785838 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1642,6 +1642,9 @@ version before switching to this one.
Thanks to Ken for providing the patch
---------------------------------------------------------------------------
Version 3.22.4 [v3-stable] (rgerhards), 2010-??-??
+- bugfix: action resume interval incorrectly handled, thus took longer to
+ resume
+- bugfix: cosmetic: proper constant used instead of number in open call
- bugfix: timestamp was incorrectly calculated for timezones with minute
offset
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=271
diff --git a/action.c b/action.c
index 0d31d21c..278625ce 100644
--- a/action.c
+++ b/action.c
@@ -627,7 +627,7 @@ static rsRetVal actionTryResume(action_t *pThis, int *pbShutdownImmediate)
* here. -- rgerhards, 2009-03-18
*/
datetime.GetTime(&ttNow); /* cache "now" */
- if(ttNow > pThis->ttResumeRtry) {
+ if(ttNow >= pThis->ttResumeRtry) {
actionSetState(pThis, ACT_STATE_RTRY); /* back to retries */
}
}
diff --git a/runtime/nsd_gtls.c b/runtime/nsd_gtls.c
index 0f0e0862..036e8290 100644
--- a/runtime/nsd_gtls.c
+++ b/runtime/nsd_gtls.c
@@ -115,7 +115,7 @@ readFile(uchar *pszFile, gnutls_datum_t *pBuf)
pBuf->data = NULL;
- if((fd = open((char*)pszFile, 0)) == -1) {
+ if((fd = open((char*)pszFile, O_RDONLY)) == -1) {
errmsg.LogError(0, RS_RET_FILE_NOT_FOUND, "can not read file '%s'", pszFile);
ABORT_FINALIZE(RS_RET_FILE_NOT_FOUND);