r4067: no matches in findnext is not an error
authorAndrew Tridgell <tridge@samba.org>
Sun, 5 Dec 2004 07:58:58 +0000 (07:58 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:06:22 +0000 (13:06 -0500)
source/ntvfs/posix/pvfs_search.c

index f805f201f60456b25f854fa649a14bbc02fca61f..4ee81503c0a991c7412b1544792b8a5558450bb2 100644 (file)
@@ -552,11 +552,6 @@ NTSTATUS pvfs_search_next(struct ntvfs_module_context *ntvfs,
                return status;
        }
 
-       /* not matching any entries is an error */
-       if (reply_count == 0) {
-               return NT_STATUS_NO_MORE_ENTRIES;
-       }
-
        io->t2fnext.out.count = reply_count;
        io->t2fnext.out.end_of_search = pvfs_list_eos(dir, search->current_index) ? 1 : 0;