diff options
author | Volker Lendecke <vl@samba.org> | 2010-10-24 11:21:56 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-10-24 11:39:30 +0200 |
commit | 5a17d26e47c1e3478866cbdbc5254eae0fa10f45 (patch) | |
tree | 26370419b6470e73722c73b8737c73d0080da1e4 /source3/torture | |
parent | c095809c0464cd174e0993d8c32434d6f3733342 (diff) | |
download | samba-5a17d26e47c1e3478866cbdbc5254eae0fa10f45.tar.gz samba-5a17d26e47c1e3478866cbdbc5254eae0fa10f45.tar.bz2 samba-5a17d26e47c1e3478866cbdbc5254eae0fa10f45.zip |
s3: Replace cli_qfileinfo_test with a call to cli_qfileinfo
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/torture.c | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 143120bf00..c416a161e0 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -3100,22 +3100,24 @@ static bool run_trans2test(int dummy) This checks new W2K calls. */ -static bool new_trans(struct cli_state *pcli, int fnum, int level) +static NTSTATUS new_trans(struct cli_state *pcli, int fnum, int level) { - char *buf = NULL; + uint8_t *buf = NULL; uint32 len; - bool correct = True; + NTSTATUS status; - if (!cli_qfileinfo_test(pcli, fnum, level, &buf, &len)) { - printf("ERROR: qfileinfo (%d) failed (%s)\n", level, cli_errstr(pcli)); - correct = False; + status = cli_qfileinfo(talloc_tos(), pcli, fnum, level, 0, + pcli->max_xmit, &buf, &len); + if (!NT_STATUS_IS_OK(status)) { + printf("ERROR: qfileinfo (%d) failed (%s)\n", level, + nt_errstr(status)); } else { printf("qfileinfo: level %d, len = %u\n", level, len); dump_data(0, (uint8 *)buf, len); printf("\n"); } - SAFE_FREE(buf); - return correct; + TALLOC_FREE(buf); + return status; } static bool run_w2ktest(int dummy) @@ -3427,17 +3429,6 @@ static bool run_deletetest(int dummy) goto fail; } -#if 0 /* JRATEST */ - { - uint32 *accinfo = NULL; - uint32 len; - cli_qfileinfo_test(cli1, fnum1, SMB_FILE_ACCESS_INFORMATION, (char **)&accinfo, &len); - if (accinfo) - printf("access mode = 0x%lx\n", *accinfo); - SAFE_FREE(accinfo); - } -#endif - if (!NT_STATUS_IS_OK(cli_close(cli1, fnum1))) { printf("[1] close failed (%s)\n", cli_errstr(cli1)); correct = False; |