From a6636dd44997b4ed608792887c962ed2a35d8c8c Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Tue, 8 Sep 2009 12:44:03 +0000 Subject: [PATCH] Add missing third parameter to open(). git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@65 13b04d17-f746-0410-82c6-800466cd88b0 --- source/dcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dcc.c b/source/dcc.c index 5de023e..2a59d5c 100644 --- a/source/dcc.c +++ b/source/dcc.c @@ -2273,7 +2273,7 @@ char *nick; tmp = m_strdup(new->filename); if (!(fullname = expand_twiddle(tmp))) malloc_strcpy(&fullname, tmp); - if ((new->file = open(fullname, O_WRONLY | O_CREAT | O_BINARY)) != -1) + if ((new->file = open(fullname, O_WRONLY | O_CREAT | O_BINARY, 0644)) != -1) { if ((new = dcc_create(nick, new->filename, passwd, 0, port? atol(port) : 0, DCC_REFILEREAD, (tdcc?DCC_TDCC:0) | DCC_TWOCLIENTS|DCC_OFFER, start_dcc_get))) new->blocksize = blocksize;