From: Jeremy Allison Date: Mon, 10 Aug 2009 23:39:13 +0000 (-0700) Subject: Ensure the fsp->fsp_name stat_ex struct is always X-Git-Tag: talloc-2.0.0~450 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7b9542ba34fd2b3144e02a5570858bc652534c4c;p=thirdparty%2Fsamba.git Ensure the fsp->fsp_name stat_ex struct is always up to date after the open. Jeremy. --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 87cab1966b4..62a0fa73b7a 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;