From 9a2d08bd3c10b8632c1497cfac3f91bcccbed8a7 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 26 Jul 2010 09:21:17 +0200 Subject: s3: Use error status instead of cli_errstr --- source3/client/client.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source3/client/client.c b/source3/client/client.c index 326c23e657..b88f180855 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); -- cgit