Get the value from the dptr instead.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
if (!mask) {
goto SearchEmpty;
}
- /*
- * For a 'continue' search we have no string. So
- * check from the initial saved string.
- */
- if (!req->posix_pathnames) {
- mask_contains_wcard = ms_has_wild(mask);
- }
dirtype = dptr_attr(sconn, dptr_num);
}
+ mask_contains_wcard = dptr_has_wild(fsp->dptr);
+
DEBUG(4,("dptr_num is %d\n",dptr_num));
if ((dirtype&0x1F) == FILE_ATTRIBUTE_VOLUME) {