1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

Autodetect service_type in cli_tree_full_connection() if the caller

passes in NULL.
(This used to be commit b63ebaa770940a276ab63583a13d8cc349b6efe6)
This commit is contained in:
Tim Potter 2004-01-02 01:04:59 +00:00
parent 2558f81a8d
commit 7db3bbc048

View File

@ -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);