diff options
author | Volker Lendecke <vl@samba.org> | 2010-07-26 08:34:35 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-07-26 09:51:37 +0200 |
commit | 0ba4404f21c76f139ca6ea287385dc2eb4817c4e (patch) | |
tree | 8349ea452614ace7edbbf4e9f90208a82dc71021 /source3/torture | |
parent | 9851e1989aa87dbd121fb16062d5ec2e969f1b81 (diff) | |
download | samba-0ba4404f21c76f139ca6ea287385dc2eb4817c4e.tar.gz samba-0ba4404f21c76f139ca6ea287385dc2eb4817c4e.tar.xz samba-0ba4404f21c76f139ca6ea287385dc2eb4817c4e.zip |
s3: Convert cli_qpathinfo1 to cli_qpathinfo
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/torture.c | 13 |
1 files changed, 8 insertions, 5 deletions
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; } |