s3: Use error status instead of cli_errstr
authorVolker Lendecke <vl@samba.org>
Mon, 26 Jul 2010 07:21:17 +0000 (09:21 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 26 Jul 2010 21:01:37 +0000 (23:01 +0200)
source3/client/client.c

index 326c23e657c3f02c9e22e65c6758434d97b275b0..b88f1808552e2c8ea72e53fe937e9dfce941abff 100644 (file)
@@ -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);