From 84ff5fe22b0b3f7ccc76025f55af5a9aa979b99a Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 6 Nov 2008 01:46:40 -0800 Subject: [PATCH] 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. (cherry picked from commit 40c1031545c1b087d71d857667c8c23276d355bc) --- source/smbd/nttrans.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/smbd/nttrans.c b/source/smbd/nttrans.c index 7673287fddc..92c24aedf45 100644 --- a/source/smbd/nttrans.c +++ b/source/smbd/nttrans.c @@ -736,6 +736,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; } -- 2.11.4.GIT