summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-05-11 18:59:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:16:56 -0500
commit2dd8857dcbf6520228ef8676264f4405198f132e (patch)
tree4d6b31a7ebc9bcb80255ea9c4053dd5583922c9e /source3
parent4629fab3e41ae424d7a64f25f34f8af7ae3ddf38 (diff)
downloadsamba-2dd8857dcbf6520228ef8676264f4405198f132e.tar.gz
samba-2dd8857dcbf6520228ef8676264f4405198f132e.tar.bz2
samba-2dd8857dcbf6520228ef8676264f4405198f132e.zip
r15537: Ignore // or \\ in //server or \\server.
Jeremy. (This used to be commit 45cfba12cfd87bebd3876087cac0575f586e395f)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/rpcclient.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c
index 50ddbd405b..d306c98f79 100644
--- a/source3/rpcclient/rpcclient.c
+++ b/source3/rpcclient/rpcclient.c
@@ -787,6 +787,11 @@ out_free:
}
}
+ if ((server[0] == '/' || server[0] == '\\') &&
+ (server[1] == '/' || server[1] == '\\')) {
+ server += 2;
+ }
+
nt_status = cli_full_connection(&cli, global_myname(), server,
opt_ipaddr ? &server_ip : NULL, opt_port,
"IPC$", "IPC",