summaryrefslogtreecommitdiffstats
path: root/runtime/librsgt.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-03-25 15:56:33 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-03-25 15:56:33 +0100
commitc896a6ba7498e15ddfe869823a64434a4180d57b (patch)
tree04d665ab29ad27f115d1cf7854862b18b97eb75f /runtime/librsgt.c
parent199630a5ef8f0c919fbbbd9e122415d1d72886a3 (diff)
downloadrsyslog-c896a6ba7498e15ddfe869823a64434a4180d57b.tar.gz
rsyslog-c896a6ba7498e15ddfe869823a64434a4180d57b.tar.bz2
rsyslog-c896a6ba7498e15ddfe869823a64434a4180d57b.zip
rsgtsig: finish implementation of 'extend' mode
This is tested as far as possible. However, the actual extend case can only be tested in about three weeks from now when the next publication is out. I have done module-testing with a mockup extend call, so chances are great the final test will be passed.
Diffstat (limited to 'runtime/librsgt.c')
-rw-r--r--runtime/librsgt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/librsgt.c b/runtime/librsgt.c
index 40b46d9c..adcc2a8a 100644
--- a/runtime/librsgt.c
+++ b/runtime/librsgt.c
@@ -277,6 +277,10 @@ tlvWriteBlockSig(gtfile gf, uchar *der, uint16_t lenDer)
tlvbufAddOctetString(gf, der, lenDer);
}
+/* support for old platforms - graceful degrade */
+#ifndef O_CLOEXEC
+#define O_CLOEXEC 0
+#endif
/* read rsyslog log state file; if we cannot access it or the
* contents looks invalid, we flag it as non-present (and thus
* begin a new hash chain).