diff options
author | Andreas Schneider <asn@samba.org> | 2011-05-16 16:50:51 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-05-16 17:54:20 +0200 |
commit | a032c9c8fe8aff455407485169b9445860f89606 (patch) | |
tree | 598d97c3bcb5befbb0e8489fe28af12e2443372e /source3 | |
parent | 6bfe488f29a9df26f3d6dbc4166200ea286536c1 (diff) | |
download | samba-a032c9c8fe8aff455407485169b9445860f89606.tar.gz samba-a032c9c8fe8aff455407485169b9445860f89606.tar.xz samba-a032c9c8fe8aff455407485169b9445860f89606.zip |
s3-rpc_server: Force ncalrpc dir to be mode 755.
This completes aae9353ecf56323b63da66aa84d8a0a4f219d94d.
directory_create_or_exist() is not needed cause create_pipe_sock() takes
care of setting up the directory correctly.
Andrew please check!
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Mon May 16 17:54:20 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/rpc_server.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/source3/rpc_server/rpc_server.c b/source3/rpc_server/rpc_server.c index cb6fbf0b00..b46c45194b 100644 --- a/source3/rpc_server/rpc_server.c +++ b/source3/rpc_server/rpc_server.c @@ -267,13 +267,7 @@ bool setup_named_pipe_socket(const char *pipe_name, goto out; } - if (!directory_create_or_exist(np_dir, geteuid(), 0700)) { - DEBUG(0, ("Failed to create pipe directory %s - %s\n", - np_dir, strerror(errno))); - goto out; - } - - state->fd = create_pipe_sock(np_dir, pipe_name, 0700); + state->fd = create_pipe_sock(np_dir, pipe_name, 0755); if (state->fd == -1) { DEBUG(0, ("Failed to create pipe socket! [%s/%s]\n", np_dir, pipe_name)); @@ -891,12 +885,6 @@ bool setup_dcerpc_ncalrpc_socket(struct tevent_context *ev_ctx, return false; } - 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, 0755); if (state->fd == -1) { DEBUG(0, ("Failed to create pipe socket! [%s/%s]\n", |