s3-rpc_server: Normalize rpc_pipe_open_interface pipe name.
authorAndreas Schneider <asn@samba.org>
Thu, 16 Sep 2010 08:49:39 +0000 (10:49 +0200)
committerAndreas Schneider <asn@samba.org>
Fri, 15 Oct 2010 12:15:45 +0000 (12:15 +0000)
Autobuild-User: Andreas Schneider <asn@samba.org>
Autobuild-Date: Fri Oct 15 12:15:45 UTC 2010 on sn-devel-104

source3/rpc_server/rpc_ncacn_np.c

index 60cd9a37e75f03cd2e2544a7ddbd20b38afeb57d..f4c47fc3e32dc9cf8c9a929636992ba97fd03281 100644 (file)
@@ -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,