summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-05-12 23:13:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:16:59 -0500
commita041b6b67264acb060aa5cd87e621b82f65659e6 (patch)
treeff16ee89e8bcd8b4091baa604b6478e03ef3acf7 /source3
parent2602e5fab165d426e3a87e0cdcf8f7c67596e501 (diff)
downloadsamba-a041b6b67264acb060aa5cd87e621b82f65659e6.tar.gz
samba-a041b6b67264acb060aa5cd87e621b82f65659e6.tar.bz2
samba-a041b6b67264acb060aa5cd87e621b82f65659e6.zip
r15556: Better fix for leading // or \\ from "David R. Linn"
<drl@vuse.vanderbilt.edu>. Jeremy. (This used to be commit 502f3e911a2e9e3e0e4a4eae34885329e0624dd5)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/rpcclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c
index d306c98f79..d5425aa43d 100644
--- a/source3/rpcclient/rpcclient.c
+++ b/source3/rpcclient/rpcclient.c
@@ -787,8 +787,8 @@ out_free:
}
}
- if ((server[0] == '/' || server[0] == '\\') &&
- (server[1] == '/' || server[1] == '\\')) {
+ if ((server[0] == '/' && server[1] == '/') ||
+ (server[0] == '\\' && server[1] == '\\')) {
server += 2;
}