1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

Fix bug 9678 - Windows 8 Roaming profiles fail

Windows 8 tries to set 'ATTRIBUTE_SECURITY_INFORMATION' on some
dirs. Ignoring it makes roaming profiles work again.
Just like w2k3 gracefully ignore all the other bits.

Signed-off-by: Gregor Beck <gbeck@sernet.de>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Aug  1 20:58:25 CEST 2013 on sn-devel-104
This commit is contained in:
Gregor Beck 2013-08-01 14:16:24 +02:00 committed by Jeremy Allison
parent 148499cb62
commit f556e71db7

View File

@ -891,14 +891,9 @@ NTSTATUS set_sd(files_struct *fsp, struct security_descriptor *psd,
/* Ensure we have at least one thing set. */
if ((security_info_sent & (SECINFO_OWNER|SECINFO_GROUP|SECINFO_DACL|SECINFO_SACL)) == 0) {
if (security_info_sent & SECINFO_LABEL) {
/* Only consider SECINFO_LABEL if no other
bits are set. Just like W2K3 we don't
store this. */
/* Just like W2K3 */
return NT_STATUS_OK;
}
return NT_STATUS_INVALID_PARAMETER;
}
/* Ensure we have the rights to do this. */
if (security_info_sent & SECINFO_OWNER) {