diff options
author | Tomas Heinrich <theinric@redhat.com> | 2011-12-01 11:18:49 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-12-01 11:18:49 +0100 |
commit | ffa6e3b9419e8794d6bba8a0ce5ade65cdcc9ccb (patch) | |
tree | c23abde5ca24cd144d1c04bc495f5f199ed56c5c | |
parent | 3229fbeb1e1183141cbf2508334a52f6a082c40b (diff) | |
download | rsyslog-ffa6e3b9419e8794d6bba8a0ce5ade65cdcc9ccb.tar.gz rsyslog-ffa6e3b9419e8794d6bba8a0ce5ade65cdcc9ccb.tar.bz2 rsyslog-ffa6e3b9419e8794d6bba8a0ce5ade65cdcc9ccb.zip |
bugfix: cosmetic: proper constant used instead of number in open call
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | runtime/nsd_gtls.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,6 @@ --------------------------------------------------------------------------- Version 3.22.4 [v3-stable] (rgerhards), 2010-??-?? +- 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/runtime/nsd_gtls.c b/runtime/nsd_gtls.c index 3a79a015..31e1e964 100644 --- a/runtime/nsd_gtls.c +++ b/runtime/nsd_gtls.c @@ -110,7 +110,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); |