X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=comstack%2Funix.c;h=22087ead5a08b4859402c264c6b5471b7740ba46;hb=fed4c59a3c26f04ba3764947aa2f7ecdd9b46889;hp=bfd6de100a13b9d8482633d69663cd5caa6795af;hpb=4ca818ec201c9dcf5461e419002c95fd2eac620e;p=yaz-moved-to-github.git diff --git a/comstack/unix.c b/comstack/unix.c index bfd6de1..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.10 2003-02-21 12:08:58 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 @@ -22,6 +22,7 @@ #include #include #include +#include #ifndef YAZ_SOCKLEN_T #define YAZ_SOCKLEN_T int @@ -291,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;