1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

s3/smbd: Detect and fail attempt to set_ea_dos_attribute on link

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Noel Power 2021-03-10 09:12:37 +00:00 committed by Jeremy Allison
parent 221573de21
commit 6427753864

View File

@ -418,6 +418,10 @@ NTSTATUS set_ea_dos_attribute(connection_struct *conn,
return NT_STATUS_NOT_IMPLEMENTED;
}
if (smb_fname->fsp == NULL) {
/* symlink */
return NT_STATUS_OBJECT_NAME_NOT_FOUND;
}
/*
* Don't store FILE_ATTRIBUTE_OFFLINE, it's dealt with in
* vfs_default via DMAPI if that is enabled.