smb_fname came out of filename_convert_dirfsp(), which already stat'ed
if the file exists. !VALID_STAT means new file.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
reply_nterror(req, status);
goto out;
}
- if (!VALID_STAT(smb_fname->st) &&
- (SMB_VFS_STAT(conn, smb_fname) != 0)) {
- DEBUG(3,("reply_getatr: stat of %s failed (%s)\n",
- smb_fname_str_dbg(smb_fname),
- strerror(errno)));
+ if (!VALID_STAT(smb_fname->st)) {
+ DBG_NOTICE("File %s not found\n",
+ smb_fname_str_dbg(smb_fname));
reply_nterror(req, map_nt_error_from_unix(errno));
goto out;
}