smb_fname_rel came from SMB_VFS_PARENT_PATHNAME() without a reference
to the underlying base_fsp. We want to pass the existing stat-info to
the VFS objects, so when creating the relative base fsp_name we should
copy the stat-info from the base fsp we were handed, not the fake one
that we just made up in SMB_VFS_PARENT_PATHNAME()
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
talloc_tos(),
smb_fname_rel->base_name,
NULL,
- &smb_fname_rel->st,
+ &fsp->base_fsp->fsp_name->st,
smb_fname_rel->twrp,
smb_fname_rel->flags);
if (base_smb_fname_rel == NULL) {