From 7a046f56abd47efd3fd8a444d1140f8b4b485817 Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Tue, 8 Sep 2009 12:37:39 +0000 Subject: [PATCH] Add missing third argument to open(). git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@64 13b04d17-f746-0410-82c6-800466cd88b0 --- source/commands2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/commands2.c b/source/commands2.c index d8032b5..fba95ec 100644 --- a/source/commands2.c +++ b/source/commands2.c @@ -2575,7 +2575,7 @@ unsigned short port = 0; { char buf[BIG_BUFFER_SIZE+1]; 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); chown(buf, getuid(), getgid());