s3:utils: make use of cli_tree_connect()
authorStefan Metzmacher <metze@samba.org>
Mon, 31 Oct 2011 16:48:57 +0000 (17:48 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 24 Nov 2011 18:02:32 +0000 (19:02 +0100)
metze

source3/utils/net_rpc.c
source3/utils/smbcacls.c

index b403c143799c12f8d48162bb7e5265c2252b3496..9c2db0a6626a7ef96893b87fc58c1f266e561960 100644 (file)
@@ -3527,7 +3527,7 @@ static bool check_share_availability(struct cli_state *cli, const char *netname)
 {
        NTSTATUS status;
 
-       status = cli_tcon_andx(cli, netname, "A:", "", 0);
+       status = cli_tree_connect(cli, netname, "A:", "", 0);
        if (!NT_STATUS_IS_OK(status)) {
                d_printf(_("skipping   [%s]: not a file share.\n"), netname);
                return false;
@@ -4858,7 +4858,7 @@ static void show_userlist(struct rpc_pipe_client *pipe_hnd,
 
        cnum = cli_state_get_tid(cli);
 
-       if (!NT_STATUS_IS_OK(cli_tcon_andx(cli, netname, "A:", "", 0))) {
+       if (!NT_STATUS_IS_OK(cli_tree_connect(cli, netname, "A:", "", 0))) {
                return;
        }
 
index 4cc88850e8b57de41dafbe8fb906453473bf44b1..de68963750f80b0c92aae023fc029e2eedbc4f1d 100644 (file)
@@ -89,7 +89,7 @@ static NTSTATUS cli_lsa_lookup_sid(struct cli_state *cli,
        char **domains;
        char **names;
 
-       status = cli_tcon_andx(cli, "IPC$", "?????", "", 0);
+       status = cli_tree_connect(cli, "IPC$", "?????", "", 0);
        if (!NT_STATUS_IS_OK(status)) {
                goto tcon_fail;
        }
@@ -139,7 +139,7 @@ static NTSTATUS cli_lsa_lookup_name(struct cli_state *cli,
        struct dom_sid *sids;
        enum lsa_SidType *types;
 
-       status = cli_tcon_andx(cli, "IPC$", "?????", "", 0);
+       status = cli_tree_connect(cli, "IPC$", "?????", "", 0);
        if (!NT_STATUS_IS_OK(status)) {
                goto tcon_fail;
        }