diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-05-08 10:29:27 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2011-05-20 21:11:20 +0200 |
commit | 6e89c230046f1b7300ba5f76dfbc81c57af69fe5 (patch) | |
tree | b74f1d8afa77d04e348b42b6dcacc0138a4715ef /source4 | |
parent | 7304370a2423230120a9ceebd1016966658f713f (diff) | |
download | samba-6e89c230046f1b7300ba5f76dfbc81c57af69fe5.tar.gz |
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
(cherry picked from commit aae9353ecf56323b63da66aa84d8a0a4f219d94d)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/smbd/service_named_pipe.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/smbd/service_named_pipe.c b/source4/smbd/service_named_pipe.c index 086a037b69d..a1e013db60e 100644 --- a/source4/smbd/service_named_pipe.c +++ b/source4/smbd/service_named_pipe.c @@ -200,6 +200,13 @@ NTSTATUS tstream_setup_named_pipe(TALLOC_CTX *mem_ctx, goto fail; } + if (!directory_create_or_exist(lpcfg_ncalrpc_dir(lp_ctx), geteuid(), 0755)) { + status = map_nt_error_from_unix(errno); + DEBUG(0,(__location__ ": Failed to create ncalrpc pipe directory '%s' - %s\n", + lpcfg_ncalrpc_dir(lp_ctx), nt_errstr(status))); + goto fail; + } + dirname = talloc_asprintf(pipe_sock, "%s/np", lpcfg_ncalrpc_dir(lp_ctx)); if (dirname == NULL) { goto fail; |