Add missing third argument to open().

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

View File

@@ -2575,7 +2575,7 @@ unsigned short port = 0;
{ {
char buf[BIG_BUFFER_SIZE+1]; char buf[BIG_BUFFER_SIZE+1];
sprintf(buf, socket_path, port); sprintf(buf, socket_path, port);
if ((u = open(buf, O_CREAT|O_WRONLY)) != -1) if ((u = open(buf, O_CREAT|O_WRONLY, 0600)) != -1)
{ {
chmod(buf, SOCKMODE); chmod(buf, SOCKMODE);
chown(buf, getuid(), getgid()); chown(buf, getuid(), getgid());