If I'm not completely blind then there's no way how *pst can be a
valid stat. We did a SET_STAT_INVALID at the beginning of the
function, and there's no code path up to this if-statement that can
make *pst valid again.
Review with "git show -U40".
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
dptr->did_stat = true;
- if (VALID_STAT(*pst)) {
- name = talloc_strdup(ctx, dptr->wcard);
- goto ret;
- }
-
pathreal = talloc_asprintf(ctx,
"%s/%s",
dptr->dir_hnd->dir_smb_fname->base_name,