From: Volker Lendecke Date: Mon, 26 Jul 2010 07:21:17 +0000 (+0200) Subject: s3: Use error status instead of cli_errstr X-Git-Tag: release-3-6-0pre1~112 X-Git-Url: http://git.samba.org/?p=amitay%2Fsamba.git;a=commitdiff_plain;h=9a2d08bd3c10b8632c1497cfac3f91bcccbed8a7 s3: Use error status instead of cli_errstr --- diff --git a/source3/client/client.c b/source3/client/client.c index 326c23e657c..b88f1808552 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -1566,10 +1566,12 @@ static int do_allinfo(const char *name) unsigned int num_streams; struct stream_struct *streams; unsigned int i; + NTSTATUS status; - if (!NT_STATUS_IS_OK(cli_qpathinfo_alt_name(cli, name, altname))) { - d_printf("%s getting alt name for %s\n", - cli_errstr(cli),name); + status = cli_qpathinfo_alt_name(cli, name, altname); + if (!NT_STATUS_IS_OK(status)) { + d_printf("%s getting alt name for %s\n", nt_errstr(status), + name); return false; } d_printf("altname: %s\n", altname);