From 0ba4404f21c76f139ca6ea287385dc2eb4817c4e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 26 Jul 2010 08:34:35 +0200 Subject: s3: Convert cli_qpathinfo1 to cli_qpathinfo --- source3/torture/torture.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'source3/torture') diff --git a/source3/torture/torture.c b/source3/torture/torture.c index f958817320..37c43f5a5b 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -2868,8 +2868,10 @@ static bool run_trans2test(int dummy) } cli_close(cli, fnum); - if (!cli_qpathinfo1(cli, fname, &c_time, &a_time, &m_time, &size, NULL)) { - printf("ERROR: qpathinfo failed (%s)\n", cli_errstr(cli)); + status = cli_qpathinfo1(cli, fname, &c_time, &a_time, &m_time, &size, + NULL); + if (!NT_STATUS_IS_OK(status)) { + printf("ERROR: qpathinfo failed (%s)\n", nt_errstr(status)); correct = False; } else { if (c_time != m_time) { @@ -5962,10 +5964,11 @@ static bool run_mangle1(int dummy) } cli_close(cli, fnum); - if (!cli_qpathinfo1(cli, alt_name, &change_time, &access_time, - &write_time, &size, &mode)) { + status = cli_qpathinfo1(cli, alt_name, &change_time, &access_time, + &write_time, &size, &mode); + if (!NT_STATUS_IS_OK(status)) { d_printf("cli_qpathinfo1(%s) failed: %s\n", alt_name, - cli_errstr(cli)); + nt_errstr(status)); return false; } -- cgit