diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-10-31 17:48:57 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-11-24 19:02:32 +0100 |
commit | c6ed8e3211aa22e4a2a88ddb6a98c79e6c11dee7 (patch) | |
tree | f9d44794c0215880c8a0cf1e44247aa62b50f198 | |
parent | c53a52a264c51d87190623ac2c9595e05c8e8695 (diff) | |
download | samba-c6ed8e3211aa22e4a2a88ddb6a98c79e6c11dee7.tar.gz samba-c6ed8e3211aa22e4a2a88ddb6a98c79e6c11dee7.tar.bz2 samba-c6ed8e3211aa22e4a2a88ddb6a98c79e6c11dee7.zip |
s3:utils: make use of cli_tree_connect()
metze
-rw-r--r-- | source3/utils/net_rpc.c | 4 | ||||
-rw-r--r-- | source3/utils/smbcacls.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index b403c14379..9c2db0a662 100644 --- a/source3/utils/net_rpc.c +++ b/source3/utils/net_rpc.c @@ -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; } diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index 4cc88850e8..de68963750 100644 --- a/source3/utils/smbcacls.c +++ b/source3/utils/smbcacls.c @@ -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; } |