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:
parent
03b9ce8473
commit
55e55804bb
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user