mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
smbd: reject FILE_ATTRIBUTE_TEMPORARY on directories
Cf MS-FSA 2.1.5.14.2 BUG: https://bugzilla.samba.org/show_bug.cgi?id=15252 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Mon Nov 28 10:14:12 UTC 2022 on sn-devel-184 (cherry picked from commit 535a08dfc4c045d7b0c0ed335f76b5d560dd7bbd) Autobuild-User(v4-17-test): Jule Anger <janger@samba.org> Autobuild-Date(v4-17-test): Mon Dec 5 10:23:58 UTC 2022 on sn-devel-184
This commit is contained in:
parent
a019803de6
commit
404ca2b665
@ -1 +0,0 @@
|
||||
^samba3.smb2.create.dosattr_tmp_dir\(.*\)
|
@ -913,6 +913,13 @@ int file_set_dosmode(connection_struct *conn,
|
||||
return -1;
|
||||
}
|
||||
|
||||
if ((S_ISDIR(smb_fname->st.st_ex_mode)) &&
|
||||
(dosmode & FILE_ATTRIBUTE_TEMPORARY))
|
||||
{
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
dosmode &= SAMBA_ATTRIBUTES_MASK;
|
||||
|
||||
DEBUG(10,("file_set_dosmode: setting dos mode 0x%x on file %s\n",
|
||||
|
Loading…
x
Reference in New Issue
Block a user