summaryrefslogtreecommitdiff
path: root/source4/libcli/raw/clitree.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-08-13 02:01:01 +0000
committerAndrew Tridgell <tridge@samba.org>2003-08-13 02:01:01 +0000
commite063ea70ad05d9a8cc927ddbcf61aa3b4ea04ade (patch)
treed23c3c31aacfa7780bc7db5094974eb67801bbc7 /source4/libcli/raw/clitree.c
parentcc3a6ea9920f30925a678c566b4af417da6d455b (diff)
downloadsamba-e063ea70ad05d9a8cc927ddbcf61aa3b4ea04ade.tar.gz
samba-e063ea70ad05d9a8cc927ddbcf61aa3b4ea04ade.tar.bz2
samba-e063ea70ad05d9a8cc927ddbcf61aa3b4ea04ade.zip
use the \\server\share form of tconx to work with servers that don't
cope with the simpler form (This used to be commit 295cc63fb8d99d403c863a7b30cb30382070a6f9)
Diffstat (limited to 'source4/libcli/raw/clitree.c')
-rw-r--r--source4/libcli/raw/clitree.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/libcli/raw/clitree.c b/source4/libcli/raw/clitree.c
index 2a41273913..60e8610bd8 100644
--- a/source4/libcli/raw/clitree.c
+++ b/source4/libcli/raw/clitree.c
@@ -269,10 +269,13 @@ NTSTATUS cli_tree_full_connection(struct cli_tree **ret_tree,
tcon.generic.level = RAW_TCON_TCONX;
tcon.tconx.in.flags = 0;
tcon.tconx.in.password = data_blob(NULL, 0);
- tcon.tconx.in.path = service;
+ asprintf(&tcon.tconx.in.path, "\\\\%s\\%s", dest_host, service);
tcon.tconx.in.device = service_type;
status = smb_tree_connect(tree, mem_ctx, &tcon);
+
+ free(tcon.tconx.in.path);
+
if (!NT_STATUS_IS_OK(status)) {
cli_tree_close(tree);
talloc_destroy(mem_ctx);