Final fix to make us pass NULL SD test in RAW-ACLs. Not sure if this is 100% right...
authorJeremy Allison <jra@samba.org>
Thu, 6 Nov 2008 09:45:40 +0000 (01:45 -0800)
committerJeremy Allison <jra@samba.org>
Thu, 6 Nov 2008 09:45:40 +0000 (01:45 -0800)
Jeremy.

source3/smbd/nttrans.c

index f711b588c5ec1c9b76aefb61168bb234097bdc33..50a3aea856335fcabf2615df52a4e51d436aea57 100644 (file)
@@ -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;
        }