summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-09-16 10:49:39 +0200
committerAndreas Schneider <asn@samba.org>2010-10-15 12:15:45 +0000
commita8f26f60ec97d23f9c0496797237ead8cc3feff1 (patch)
treeea5cfbfc2e9e84cdfac798226a6b9b0f6c083f96 /source3
parentf22e6cf3b73c04e8fada3b163567285b14840a16 (diff)
downloadsamba-a8f26f60ec97d23f9c0496797237ead8cc3feff1.tar.gz
samba-a8f26f60ec97d23f9c0496797237ead8cc3feff1.tar.bz2
samba-a8f26f60ec97d23f9c0496797237ead8cc3feff1.zip
s3-rpc_server: Normalize rpc_pipe_open_interface pipe name.
Autobuild-User: Andreas Schneider <asn@samba.org> Autobuild-Date: Fri Oct 15 12:15:45 UTC 2010 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/rpc_ncacn_np.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/rpc_server/rpc_ncacn_np.c b/source3/rpc_server/rpc_ncacn_np.c
index 60cd9a37e7..f4c47fc3e3 100644
--- a/source3/rpc_server/rpc_ncacn_np.c
+++ b/source3/rpc_server/rpc_ncacn_np.c
@@ -836,11 +836,16 @@ NTSTATUS rpc_pipe_open_interface(TALLOC_CTX *mem_ctx,
goto done;
}
- DEBUG(10, ("Connecting to %s pipe.\n", pipe_name));
+ while (pipe_name[0] == '\\') {
+ pipe_name++;
+ }
+
+ DEBUG(5, ("Connecting to %s pipe.\n", pipe_name));
server_type = lp_parm_const_string(GLOBAL_SECTION_SNUM,
"rpc_server", pipe_name,
"embedded");
+
if (StrCaseCmp(server_type, "embedded") == 0) {
status = rpc_pipe_open_internal(tmp_ctx,
syntax, server_info,