X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=comstack%2Funix.c;fp=comstack%2Funix.c;h=22087ead5a08b4859402c264c6b5471b7740ba46;hp=e5cd9e58d9cfea14b64fcaa8daef24347bcfe4a6;hb=2703ec73c9d338d55387ec3f787d0a7f30289cff;hpb=125af6f8db172ec8fd4c24dfe6f6ebeca49afacb diff --git a/comstack/unix.c b/comstack/unix.c index e5cd9e5..22087ea 100644 --- a/comstack/unix.c +++ b/comstack/unix.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2003, Index Data * See the file LICENSE for details. * - * $Id: unix.c,v 1.11 2003-03-03 19:57:35 adam Exp $ + * $Id: unix.c,v 1.12 2003-05-14 13:49:02 adam Exp $ * UNIX socket COMSTACK. By Morten Bøgeskov. */ #ifndef WIN32 @@ -292,6 +292,7 @@ static int unix_bind(COMSTACK h, void *address, int mode) h->cerrno = CSYSERR; return -1; } + chmod(path, 0777); if (mode == CS_SERVER && listen(h->iofile, 3) < 0) { h->cerrno = CSYSERR;