diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2004-10-25 07:55:08 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:04:41 -0500 |
commit | 3b252b765d42637e48b4c04d78364b478699b9fc (patch) | |
tree | 6950749945a433ebbbf20adfe9fedcd76bc45982 /source4/rpc_server | |
parent | 266e36aa54dc82a48655d6c64cb8cd3fbfdf4fa9 (diff) | |
download | samba-3b252b765d42637e48b4c04d78364b478699b9fc.tar.gz samba-3b252b765d42637e48b4c04d78364b478699b9fc.tar.bz2 samba-3b252b765d42637e48b4c04d78364b478699b9fc.zip |
r3205: Create ncalrpc directory if it didn't exist yet
(This used to be commit 1161c33794cdb16a3d09a66258f46e0020c4aeef)
Diffstat (limited to 'source4/rpc_server')
-rw-r--r-- | source4/rpc_server/dcerpc_sock.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/rpc_server/dcerpc_sock.c b/source4/rpc_server/dcerpc_sock.c index 8ba7464a79..4b892aed64 100644 --- a/source4/rpc_server/dcerpc_sock.c +++ b/source4/rpc_server/dcerpc_sock.c @@ -196,6 +196,11 @@ void dcesrv_sock_init(struct server_service *service, const struct model_ops *mo DEBUG(1,("dcesrv_sock_init\n")); + /* Make sure the directory for NCALRPC exists */ + if (!directory_exist(lp_ncalrpc_dir(), NULL)) { + mkdir(lp_ncalrpc_dir(), 700); + } + for (e=dce_ctx->endpoint_list;e;e=e->next) { switch (e->ep_description.transport) { case NCACN_UNIX_STREAM: |