dptr_ReadDirName() is only called from smbd_dirptr_get_entry(),
which is now doing it's own call to is_visible_fsp().
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
dptr->did_stat = true;
- /* First check if it should be visible. */
- if (!is_visible_file(dptr->conn,
- dptr->dir_hnd,
- dptr->wcard,
- pst,
- true)) {
- /* This only returns false if the file was found, but
- is explicitly not visible. Set us to end of
- directory, but return NULL as we know we can't ever
- find it. */
- goto ret;
- }
-
if (VALID_STAT(*pst)) {
name = talloc_strdup(ctx, dptr->wcard);
goto ret;