From af0a9eb52955cfae570bfdc01821f56385c860cf Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 6 Jul 2006 08:00:24 +0000 Subject: r16834: split the level's of smb_search_first/smb_search_next and the levels of smb_search_data metze (This used to be commit 78c201db8a47a71908698c4dda2add4cf85694d9) --- source4/torture/raw/chkpath.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'source4/torture/raw/chkpath.c') diff --git a/source4/torture/raw/chkpath.c b/source4/torture/raw/chkpath.c index a7675f3e3e..c4344d5c73 100644 --- a/source4/torture/raw/chkpath.c +++ b/source4/torture/raw/chkpath.c @@ -38,10 +38,11 @@ static NTSTATUS single_search(struct smbcli_state *cli, TALLOC_CTX *mem_ctx, const char *pattern) { - union smb_search_first io; - NTSTATUS status; - - io.generic.level = RAW_SEARCH_STANDARD; + union smb_search_first io; + NTSTATUS status; + + io.t2ffirst.level = RAW_SEARCH_TRANS2; + io.t2ffirst.data_level = RAW_SEARCH_DATA_STANDARD; io.t2ffirst.in.search_attrib = 0; io.t2ffirst.in.max_count = 1; io.t2ffirst.in.flags = FLAG_TRANS2_FIND_CLOSE; @@ -49,9 +50,9 @@ static NTSTATUS single_search(struct smbcli_state *cli, io.t2ffirst.in.pattern = pattern; status = smb_raw_search_first(cli->tree, mem_ctx, - &io, NULL, NULL); - - return status; + &io, NULL, NULL); + + return status; } static BOOL test_path(struct smbcli_state *cli, const char *path, NTSTATUS expected, NTSTATUS dos_expected) -- cgit