From ffa6e3b9419e8794d6bba8a0ce5ade65cdcc9ccb Mon Sep 17 00:00:00 2001 From: Tomas Heinrich Date: Thu, 1 Dec 2011 11:18:49 +0100 Subject: bugfix: cosmetic: proper constant used instead of number in open call Signed-off-by: Rainer Gerhards --- runtime/nsd_gtls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime') 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); -- cgit