]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: remove SMB_VFS_FSTAT() from open_file()
authorRalph Boehme <slow@samba.org>
Tue, 17 Nov 2020 15:05:11 +0000 (16:05 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 16 Dec 2020 09:08:30 +0000 (09:08 +0000)
This is now done in non_widelink_open().

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c

index 6b760353704459782b3f55b289c8c007a40f5e94..8c3771ec9901a376dc0e978840d9e633a561831b 100644 (file)
@@ -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. */