summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-05-08 10:29:27 +0200
committerAndrew Bartlett <abartlet@samba.org>2011-05-08 19:00:29 +0200
commitaae9353ecf56323b63da66aa84d8a0a4f219d94d (patch)
treef290f32f705a98002d0bb54e359a8f91f1bc3834 /source3
parenteae061293bad97e6e70526b4e755ca69c02d0ae9 (diff)
downloadsamba-aae9353ecf56323b63da66aa84d8a0a4f219d94d.tar.gz
samba-aae9353ecf56323b63da66aa84d8a0a4f219d94d.tar.bz2
samba-aae9353ecf56323b63da66aa84d8a0a4f219d94d.zip
ncalrpc: Force ncalrpc dir to be mode 755 in all users
This allows this directory to be shared between Samba3 and Samba4 in a Franky-style setup easily. Andrew Bartlett
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/rpc_server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/rpc_server.c b/source3/rpc_server/rpc_server.c
index cdde40c2df..cb6fbf0b00 100644
--- a/source3/rpc_server/rpc_server.c
+++ b/source3/rpc_server/rpc_server.c
@@ -891,13 +891,13 @@ bool setup_dcerpc_ncalrpc_socket(struct tevent_context *ev_ctx,
return false;
}
- if (!directory_create_or_exist(lp_ncalrpc_dir(), geteuid(), 0700)) {
+ if (!directory_create_or_exist(lp_ncalrpc_dir(), geteuid(), 0755)) {
DEBUG(0, ("Failed to create pipe directory %s - %s\n",
lp_ncalrpc_dir(), strerror(errno)));
goto out;
}
- state->fd = create_pipe_sock(lp_ncalrpc_dir(), name, 0700);
+ state->fd = create_pipe_sock(lp_ncalrpc_dir(), name, 0755);
if (state->fd == -1) {
DEBUG(0, ("Failed to create pipe socket! [%s/%s]\n",
lp_ncalrpc_dir(), name));