s3-torture: run_shortname_test: Remove uses of cli_errstr()
authorBjörn Baumbach <bb@sernet.de>
Thu, 7 Jul 2011 14:56:05 +0000 (16:56 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 7 Jul 2011 17:16:28 +0000 (19:16 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/torture/torture.c

index 22beb7390b7569b5a375468dc08731381eb5c3c0..4a01bf2a9c476507e206a43b80a310adebd57f0e 100644 (file)
@@ -7198,11 +7198,11 @@ static bool run_shortname_test(int dummy)
                cli_close(cli, fnum);
 
                s.matched = 0;
-               cli_list(cli, "\\shortname\\test*.*", 0, shortname_list_fn,
-                        &s);
+               status = cli_list(cli, "\\shortname\\test*.*", 0,
+                                 shortname_list_fn, &s);
                if (s.matched != 1) {
                        d_printf("(%s) failed to list %s: %s\n",
-                               __location__, fname, cli_errstr(cli));
+                               __location__, fname, nt_errstr(status));
                        correct = false;
                        goto out;
                }