From c1c2dd6c19f0d96648bfb16a2fa4433e7129f9fe Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Tue, 17 Nov 2020 16:05:11 +0100 Subject: [PATCH] smbd: remove SMB_VFS_FSTAT() from open_file() This is now done in non_widelink_open(). Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/smbd/open.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 6b760353704..8c3771ec990 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -1412,18 +1412,6 @@ static NTSTATUS open_file(files_struct *fsp, } } - ret = SMB_VFS_FSTAT(fsp, &smb_fname->st); - if (ret == -1) { - /* If we have an fd, this stat should succeed. */ - DEBUG(0,("Error doing fstat on open file %s " - "(%s)\n", - smb_fname_str_dbg(smb_fname), - strerror(errno) )); - status = map_nt_error_from_unix(errno); - fd_close(fsp); - return status; - } - if (*p_file_created) { /* We created this file. */ -- 2.47.3