diff options
author | Volker Lendecke <vl@samba.org> | 2010-01-03 18:46:57 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-01-03 21:14:57 +0100 |
commit | 99f292479f1253c4cb1845461ae9edec8f155133 (patch) | |
tree | 0bec446395b32bb8d55f5e16ede3a40f82700047 /source3/utils | |
parent | 41a5149981eb7293a54f0497c3a4f4fc50661157 (diff) | |
download | samba-99f292479f1253c4cb1845461ae9edec8f155133.tar.gz samba-99f292479f1253c4cb1845461ae9edec8f155133.tar.bz2 samba-99f292479f1253c4cb1845461ae9edec8f155133.zip |
s3: Convert cli_tdis to the async API
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_rpc.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index 5b3b1e34d7..7dc8c1dd2c 100644 --- a/source3/utils/net_rpc.c +++ b/source3/utils/net_rpc.c @@ -3074,13 +3074,19 @@ static int rpc_share_list(struct net_context *c, int argc, const char **argv) static bool check_share_availability(struct cli_state *cli, const char *netname) { - if (!NT_STATUS_IS_OK(cli_tcon_andx(cli, netname, "A:", "", 0))) { + NTSTATUS status; + + status = cli_tcon_andx(cli, netname, "A:", "", 0); + if (!NT_STATUS_IS_OK(status)) { d_printf(_("skipping [%s]: not a file share.\n"), netname); return false; } - if (!cli_tdis(cli)) + status = cli_tdis(cli); + if (!NT_STATUS_IS_OK(status)) { + d_printf(_("cli_tdis returned %s\n"), nt_errstr(status)); return false; + } return true; } |