Ensure we do this for all cases where the stat fails.
Jeremy
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Apr 4 20:08:45 CEST 2011 on sn-devel-104
goto done;
}
+ /* Stat failed - ensure we don't use it. */
+ SET_STAT_INVALID(smb_fname->st);
+
if (errno == ENOENT) {
/* Optimization when creating a new file - only
the last component doesn't exist. */
}
}
- /* Stat failed - ensure we don't use it. */
- SET_STAT_INVALID(smb_fname->st);
-
/*
* Missing last component is ok - new file.
* Also deal with permission denied elsewhere.