diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-03-25 18:54:21 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-03-25 18:54:21 +0100 |
commit | 88be3a67958ec8dcef9acc2df09d66d2ee6970ea (patch) | |
tree | 72c18b97d28682aa46ffaf4428f29cb8329a37ba /runtime/librsgt.c | |
parent | 28a34dab0752968f53f6a2d4de2c6b64463e8b06 (diff) | |
parent | 95e2ffec16c925097e1a478b44e031cd1348164a (diff) | |
download | rsyslog-88be3a67958ec8dcef9acc2df09d66d2ee6970ea.tar.gz rsyslog-88be3a67958ec8dcef9acc2df09d66d2ee6970ea.tar.bz2 rsyslog-88be3a67958ec8dcef9acc2df09d66d2ee6970ea.zip |
Merge branch 'master-gt'
Diffstat (limited to 'runtime/librsgt.c')
-rw-r--r-- | runtime/librsgt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/librsgt.c b/runtime/librsgt.c index e24c3769..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). @@ -627,6 +631,7 @@ timestampIt(gtfile gf, GTDataHash *hash) /* Encode timestamp. */ r = GTTimestamp_getDEREncoded(timestamp, &der, &lenDer); if(r != GT_OK) { + // TODO: use rsyslog error reporting! fprintf(stderr, "GTTimestamp_getDEREncoded() failed: %d (%s)\n", r, GT_getErrorString(r)); goto done; |