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>
if (smb_fname->fsp != NULL) {
/* Store the DOS attributes in an EA by preference. */
- status = SMB_VFS_FSET_DOS_ATTRIBUTES(conn,
- smb_fname->fsp,
- dosmode);
+ status = SMB_VFS_FSET_DOS_ATTRIBUTES(
+ conn, metadata_fsp(smb_fname->fsp), dosmode);
} else {
status = NT_STATUS_OBJECT_NAME_NOT_FOUND;
}