summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-08 09:29:29 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-08 14:09:08 +0200
commit0ecd15abe612347e3e3f579d6038220a29833a21 (patch)
tree1a56dbc02482f4089ee8f7c6e92afeb60c62fd60 /source3
parentf5b0bbf1087b4b7eae1e5b1da3ef6b7e97f87710 (diff)
downloadsamba-0ecd15abe612347e3e3f579d6038220a29833a21.tar.gz
samba-0ecd15abe612347e3e3f579d6038220a29833a21.tar.bz2
samba-0ecd15abe612347e3e3f579d6038220a29833a21.zip
s3:client: use cli_nt_error() in order to avoid cli_errstr()
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/client/client.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index f24f1a273f..b4e2b5e525 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -2237,7 +2237,9 @@ static int do_cancel(int job)
d_printf("Job %d cancelled\n",job);
return 0;
} else {
- d_printf("Error cancelling job %d : %s\n",job,cli_errstr(cli));
+ NTSTATUS status = cli_nt_error(cli);
+ d_printf("Error cancelling job %d : %s\n",
+ job, nt_errstr(status));
return 1;
}
}
@@ -4195,8 +4197,11 @@ static bool browse_host(bool sort)
return true;
}
- if((ret = cli_RNetShareEnum(cli, browse_fn, NULL)) == -1)
- d_printf("Error returning browse list: %s\n", cli_errstr(cli));
+ if((ret = cli_RNetShareEnum(cli, browse_fn, NULL)) == -1) {
+ NTSTATUS status = cli_nt_error(cli);
+ d_printf("Error returning browse list: %s\n",
+ nt_errstr(status));
+ }
return (ret != -1);
}