BUG: https://bugzilla.samba.org/show_bug.cgi?id=15126
MR: https://gitlab.com/samba-team/samba/-/merge_requests/2643
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit
03b9ce84736d536ab2dd8a5ce1a2656e6a90c8c8)
}
/* Get the DOS attributes via the VFS if we can */
- status = SMB_VFS_FGET_DOS_ATTRIBUTES(fsp->conn, fsp, &result);
+ status = SMB_VFS_FGET_DOS_ATTRIBUTES(
+ fsp->conn, metadata_fsp(fsp), &result);
if (!NT_STATUS_IS_OK(status)) {
/*
* Only fall back to using UNIX modes if we get NOT_IMPLEMENTED.
*/
uint32_t attr = 0;
- status = SMB_VFS_FGET_DOS_ATTRIBUTES(conn, smb_fname->fsp, &attr);
+ status = SMB_VFS_FGET_DOS_ATTRIBUTES(
+ conn, metadata_fsp(smb_fname->fsp), &attr);
if (NT_STATUS_IS_OK(status)) {
existing_dos_attributes = attr;
}