Ensure the fsp->fsp_name stat_ex struct is always
authorJeremy Allison <jra@samba.org>
Mon, 10 Aug 2009 23:39:13 +0000 (16:39 -0700)
committerJeremy Allison <jra@samba.org>
Mon, 10 Aug 2009 23:39:13 +0000 (16:39 -0700)
up to date after the open.
Jeremy.

source3/smbd/open.c

index 87cab1966b443451b7e38a590e67b45f3fbc83a8..62a0fa73b7aa1558830207775040b919a0b2de32 100644 (file)
@@ -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;