From 9953885d0be6a2477f5fd29940f3f1d6a7136cf4 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 14 Oct 2008 15:40:44 -0700 Subject: Note url explaining this code. Jeremy. (cherry picked from commit 4f1cdfe0901f4c78dff56ae5c26d2801b97d50d5) --- source/smbd/posix_acls.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/smbd/posix_acls.c b/source/smbd/posix_acls.c index d798fa8da45..65ec25190b7 100644 --- a/source/smbd/posix_acls.c +++ b/source/smbd/posix_acls.c @@ -3525,6 +3525,10 @@ NTSTATUS set_nt_acl(files_struct *fsp, uint32 security_info_sent, SEC_DESC *psd) 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| -- cgit