diff options
author | Volker Lendecke <vl@samba.org> | 2010-07-26 09:27:11 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-07-26 23:01:37 +0200 |
commit | f62bde93ce911445c0f3cb952d17d271a6536385 (patch) | |
tree | b701581a3a5f898539c71ee1ab24115052279084 /source3/torture/torture.c | |
parent | 9a2d08bd3c10b8632c1497cfac3f91bcccbed8a7 (diff) | |
download | samba-f62bde93ce911445c0f3cb952d17d271a6536385.tar.gz samba-f62bde93ce911445c0f3cb952d17d271a6536385.tar.bz2 samba-f62bde93ce911445c0f3cb952d17d271a6536385.zip |
s3: Convert cli_qpathinfo2 to cli_qpathinfo_send
Diffstat (limited to 'source3/torture/torture.c')
-rw-r--r-- | source3/torture/torture.c | 47 |
1 files changed, 18 insertions, 29 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 37c43f5a5b..90cbf90c1a 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -2896,9 +2896,10 @@ static bool run_trans2test(int dummy) cli_open(cli, fname, O_RDWR | O_CREAT | O_TRUNC, DENY_NONE, &fnum); cli_close(cli, fnum); - if (!cli_qpathinfo2(cli, fname, &c_time_ts, &a_time_ts, &w_time_ts, - &m_time_ts, &size, NULL, NULL)) { - printf("ERROR: qpathinfo2 failed (%s)\n", cli_errstr(cli)); + status = cli_qpathinfo2(cli, fname, &c_time_ts, &a_time_ts, &w_time_ts, + &m_time_ts, &size, NULL, NULL); + if (!NT_STATUS_IS_OK(status)) { + printf("ERROR: qpathinfo2 failed (%s)\n", nt_errstr(status)); correct = False; } else { if (w_time_ts.tv_sec < 60*60*24*2) { @@ -2918,9 +2919,10 @@ static bool run_trans2test(int dummy) correct = False; } sleep(3); - if (!cli_qpathinfo2(cli, "\\trans2\\", &c_time_ts, &a_time_ts, &w_time_ts, - &m_time_ts, &size, NULL, NULL)) { - printf("ERROR: qpathinfo2 failed (%s)\n", cli_errstr(cli)); + status = cli_qpathinfo2(cli, "\\trans2\\", &c_time_ts, &a_time_ts, + &w_time_ts, &m_time_ts, &size, NULL, NULL); + if (!NT_STATUS_IS_OK(status)) { + printf("ERROR: qpathinfo2 failed (%s)\n", nt_errstr(status)); correct = False; } @@ -2928,9 +2930,10 @@ static bool run_trans2test(int dummy) O_RDWR | O_CREAT | O_TRUNC, DENY_NONE, &fnum); cli_write(cli, fnum, 0, (char *)&fnum, 0, sizeof(fnum)); cli_close(cli, fnum); - if (!cli_qpathinfo2(cli, "\\trans2\\", &c_time_ts, &a_time_ts, &w_time_ts, - &m_time2_ts, &size, NULL, NULL)) { - printf("ERROR: qpathinfo2 failed (%s)\n", cli_errstr(cli)); + status = cli_qpathinfo2(cli, "\\trans2\\", &c_time_ts, &a_time_ts, + &w_time_ts, &m_time2_ts, &size, NULL, NULL); + if (!NT_STATUS_IS_OK(status)) { + printf("ERROR: qpathinfo2 failed (%s)\n", nt_errstr(status)); correct = False; } else { if (memcmp(&m_time_ts, &m_time2_ts, sizeof(struct timespec)) @@ -6408,16 +6411,9 @@ static bool run_dir_createtime(int dummy) goto out; } - if (!cli_qpathinfo2(cli, - dname, - &create_time, - NULL, - NULL, - NULL, - NULL, - NULL, - NULL)) { - status = cli_nt_error(cli); + status = cli_qpathinfo2(cli, dname, &create_time, NULL, NULL, NULL, + NULL, NULL, NULL); + if (!NT_STATUS_IS_OK(status)) { printf("cli_qpathinfo2 returned %s\n", nt_errstr(status)); goto out; @@ -6433,16 +6429,9 @@ static bool run_dir_createtime(int dummy) goto out; } - if (!cli_qpathinfo2(cli, - dname, - &create_time1, - NULL, - NULL, - NULL, - NULL, - NULL, - NULL)) { - status = cli_nt_error(cli); + status = cli_qpathinfo2(cli, dname, &create_time1, NULL, NULL, NULL, + NULL, NULL, NULL); + if (!NT_STATUS_IS_OK(status)) { printf("cli_qpathinfo2 (2) returned %s\n", nt_errstr(status)); goto out; |