1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

smbd: use metadata_fsp() with SMB_VFS_FSET_DOS_ATTRIBUTES()

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>
This commit is contained in:
Ralph Boehme 2022-07-29 14:56:21 +02:00 committed by Volker Lendecke
parent 03b9ce8473
commit 55e55804bb

View File

@ -933,9 +933,8 @@ int file_set_dosmode(connection_struct *conn,
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;
}