r3208: fixed permissions of ncalrpc directory creation
authorAndrew Tridgell <tridge@samba.org>
Mon, 25 Oct 2004 09:41:24 +0000 (09:41 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:04:41 +0000 (13:04 -0500)
(This used to be commit adbfd206f4e077ed915a014e89a970470b43e125)

source4/rpc_server/dcerpc_sock.c

index 4b892aed64af11d071e6da2757ec4f1db9b7ba8b..2d11431d0b793e92194e58acc0fd3b16e6c2ccba 100644 (file)
@@ -198,7 +198,7 @@ void dcesrv_sock_init(struct server_service *service, const struct model_ops *mo
 
        /* Make sure the directory for NCALRPC exists */
        if (!directory_exist(lp_ncalrpc_dir(), NULL)) {
-               mkdir(lp_ncalrpc_dir(), 700);
+               mkdir(lp_ncalrpc_dir(), S_IWUSR | S_IRUSR | S_IXUSR);
        }
 
        for (e=dce_ctx->endpoint_list;e;e=e->next) {