git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f89d89
)
Autodetect service_type in cli_tree_full_connection() if the caller
author
Tim Potter
<tpot@samba.org>
Fri, 2 Jan 2004 01:04:59 +0000
(
01:04
+0000)
committer
Tim Potter
<tpot@samba.org>
Fri, 2 Jan 2004 01:04:59 +0000
(
01:04
+0000)
passes in NULL.
source/libcli/raw/clitree.c
patch
|
blob
|
history
diff --git
a/source/libcli/raw/clitree.c
b/source/libcli/raw/clitree.c
index 1e9104308e0c2a3cb5eb229241545cb2d02c4fdb..1114c8a9c5dd73663be54188db512668ba356231 100644
(file)
--- a/
source/libcli/raw/clitree.c
+++ b/
source/libcli/raw/clitree.c
@@
-268,6
+268,12
@@
NTSTATUS cli_tree_full_connection(struct cli_tree **ret_tree,
tcon.tconx.in.flags = 0;
tcon.tconx.in.password = data_blob(NULL, 0);
asprintf(&tcon.tconx.in.path, "\\\\%s\\%s", dest_host, service);
+ if (!service_type) {
+ if (strequal(service, "IPC$"))
+ service_type = "IPC";
+ else
+ service_type = "?????";
+ }
tcon.tconx.in.device = service_type;
status = smb_tree_connect(tree, mem_ctx, &tcon);