summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-03-12 16:19:56 +0100
committerGünther Deschner <gd@samba.org>2008-03-12 16:19:56 +0100
commit5e86a172a567ca9a60d74d1076430fb5e70b27a6 (patch)
tree1fb90f31f87af3b6cc6f0856f766aa5c289abb74
parent08188dc72e4e962e58145b51f52ae880ce1ff8c4 (diff)
downloadsamba-5e86a172a567ca9a60d74d1076430fb5e70b27a6.tar.gz
samba-5e86a172a567ca9a60d74d1076430fb5e70b27a6.tar.bz2
samba-5e86a172a567ca9a60d74d1076430fb5e70b27a6.zip
For convenience reasons, always create cli->srv_name_slash in the rpc_client.
Guenther (This used to be commit 6363c383d6989d2dfb2ee488ffa7aeb128c5385b)
-rw-r--r--source3/include/client.h1
-rw-r--r--source3/libsmb/cliconnect.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/source3/include/client.h b/source3/include/client.h
index 52dc513d65..0787712efb 100644
--- a/source3/include/client.h
+++ b/source3/include/client.h
@@ -123,6 +123,7 @@ struct cli_state {
int privileges;
fstring desthost;
+ fstring srv_name_slash;
/* The credentials used to open the cli_state connection. */
fstring domain;
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 912b841d5e..5e8a586cd0 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -1485,6 +1485,7 @@ NTSTATUS cli_connect(struct cli_state *cli,
}
fstrcpy(cli->desthost, host);
+ fstr_sprintf(cli->srv_name_slash, "\\\\%s", cli->desthost);
/* allow hostnames of the form NAME#xx and do a netbios lookup */
if ((p = strchr(cli->desthost, '#'))) {