{
pstring pathreal;
- SET_STAT_INVALID(pst);
+ SET_STAT_INVALID(*pst);
if (dptr->has_wild) {
return dptr_normal_ReadDirName(dptr, poffset, pst);
BOOL dptr_SearchDir(struct dptr_struct *dptr, const char *name, long *poffset, SMB_STRUCT_STAT *pst)
{
- SET_STAT_INVALID(pst);
+ SET_STAT_INVALID(*pst);
if (!dptr->has_wild && (dptr->dir_hnd->offset == -1)) {
/* This is a singleton directory and we're already at the end. */
BOOL hide_unwriteable = lp_hideunwriteable_files(SNUM(conn));
BOOL hide_special = lp_hide_special_files(SNUM(conn));
- SET_STAT_INVALID(pst);
+ SET_STAT_INVALID(*pst);
if ((strcmp(".",name) == 0) || (strcmp("..",name) == 0)) {
return True; /* . and .. are always visible. */