Add missing third parameter to open().

git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@65 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2009-09-08 12:44:03 +00:00
parent 7a046f56ab
commit a6636dd449

View File

@@ -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;