From e6e4e3e0a3f2222efeca7bee535fe26162c974c8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 22 Sep 2004 05:13:32 +0000 Subject: r2495: cope properly with STATUS_NO_MORE_FILES in old search client code (This used to be commit 878729b7d97869a3d6dacea115ed4af2fd18e93c) --- source4/libcli/clilist.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source4/libcli/clilist.c') diff --git a/source4/libcli/clilist.c b/source4/libcli/clilist.c index 91a989d361..67a2e980ca 100644 --- a/source4/libcli/clilist.c +++ b/source4/libcli/clilist.c @@ -300,7 +300,10 @@ int smbcli_list_old(struct smbcli_tree *tree, const char *Mask, uint16_t attribu &next_parms, (void*)&state, smbcli_list_old_callback); - + + if (NT_STATUS_EQUAL(status, STATUS_NO_MORE_FILES)) { + break; + } if (!NT_STATUS_IS_OK(status)) { talloc_destroy(state.mem_ctx); return -1; -- cgit