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:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user