summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-12-01 11:26:24 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2011-12-01 11:26:24 +0100
commitcb0087ec4736089d73d0368e683b652013483a52 (patch)
tree171c1fca8b7cf2dbb1428bf0cdb428c10bdc577c /runtime
parenteae869a3a4f2ea4c3bf4f54a9b1b61f00fc24f38 (diff)
parent9859818eccb27a330537258d9149c7c5f32292f6 (diff)
downloadrsyslog-cb0087ec4736089d73d0368e683b652013483a52.tar.gz
rsyslog-cb0087ec4736089d73d0368e683b652013483a52.tar.xz
rsyslog-cb0087ec4736089d73d0368e683b652013483a52.zip
Merge branch 'v3-stable' into v4-stable
Diffstat (limited to 'runtime')
-rw-r--r--runtime/nsd_gtls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/nsd_gtls.c b/runtime/nsd_gtls.c
index ee78488a..744020e9 100644
--- a/runtime/nsd_gtls.c
+++ b/runtime/nsd_gtls.c
@@ -112,7 +112,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);