From: Jeremy Allison Date: Thu, 6 Nov 2008 09:45:40 +0000 (-0800) Subject: Final fix to make us pass NULL SD test in RAW-ACLs. Not sure if this is 100% right... X-Git-Tag: samba-4.0.0alpha6~480^2~252^2~97 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7522ef15aca2429ef57c75d8297dd8121e79c9da;p=thirdparty%2Fsamba.git Final fix to make us pass NULL SD test in RAW-ACLs. Not sure if this is 100% right. Only inheritance left to fix. Jeremy. --- diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index f711b588c5e..50a3aea8563 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -725,6 +725,9 @@ static NTSTATUS set_sd(files_struct *fsp, uint8 *data, uint32 sd_len, if (psd->sacl==0) { security_info_sent &= ~SACL_SECURITY_INFORMATION; } + if (security_info_sent & DACL_SECURITY_INFORMATION) { + psd->type |= SEC_DESC_DACL_PRESENT; + } if (psd->dacl==0) { security_info_sent &= ~DACL_SECURITY_INFORMATION; }