From 5f0c8df55afd09169a945438088b4da1bf1809bb Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 26 Jul 2005 04:47:16 +0000 Subject: r8773: fixed another dependency on directory ordering in RAW-SEARCH Thanks to andrew bartlett for helping to track this down (his was the only system that hit this) (This used to be commit 5edeb56bf0c86dae9cd9fe9275d1e37aedc05503) --- source4/torture/raw/search.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/torture/raw/search.c b/source4/torture/raw/search.c index ee61f605be..d1ea290c62 100644 --- a/source4/torture/raw/search.c +++ b/source4/torture/raw/search.c @@ -799,6 +799,8 @@ static BOOL test_modify_search(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) CHECK_STATUS(status, NT_STATUS_OK); CHECK_VALUE(result.count, 2); + result.count = 0; + printf("Changing attributes and deleting\n"); smbcli_open(cli->tree, BASEDIR "\\T003-03.txt.2", O_CREAT|O_RDWR, DENY_NONE); smbcli_open(cli->tree, BASEDIR "\\T013-13.txt.2", O_CREAT|O_RDWR, DENY_NONE); @@ -824,7 +826,7 @@ static BOOL test_modify_search(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) status = smb_raw_search_next(cli->tree, mem_ctx, &io2, &result, multiple_search_callback); CHECK_STATUS(status, NT_STATUS_OK); - CHECK_VALUE(result.count, 22); + CHECK_VALUE(result.count, 20); ret &= check_result(&result, "t009-9.txt", True, FILE_ATTRIBUTE_ARCHIVE); ret &= check_result(&result, "t014-14.txt", False, 0); -- cgit