From 7b9542ba34fd2b3144e02a5570858bc652534c4c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 10 Aug 2009 16:39:13 -0700 Subject: Ensure the fsp->fsp_name stat_ex struct is always up to date after the open. Jeremy. --- source3/smbd/open.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/smbd') diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 87cab1966b..62a0fa73b7 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -3278,6 +3278,7 @@ static NTSTATUS create_file_unixpath(connection_struct *conn, } if ((fsp->fh != NULL) && (fsp->fh->fd != -1)) { SMB_VFS_FSTAT(fsp, &smb_fname->st); + fsp->fsp_name->st = smb_fname->st; } return NT_STATUS_OK; -- cgit