From 7fb590d4f9be26a67e7cd276d63b66cff8901e91 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 14 Oct 2008 15:39:02 -0700 Subject: [PATCH] Note url explaining this code. Jeremy. --- source3/smbd/posix_acls.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c index f129506716..848d3e4a6d 100644 --- a/source3/smbd/posix_acls.c +++ b/source3/smbd/posix_acls.c @@ -3510,6 +3510,10 @@ NTSTATUS set_nt_acl(files_struct *fsp, uint32 security_info_sent, const SEC_DESC create_file_sids(&sbuf, &file_owner_sid, &file_grp_sid); + /* See here: http://www.codeproject.com/KB/winsdk/accessctrl2.aspx + * for details. JRA. + */ + if ((security_info_sent & DACL_SECURITY_INFORMATION) && psd->dacl != NULL && (psd->type & (SE_DESC_DACL_AUTO_INHERITED| -- 2.34.1