From: Jeremy Allison Date: Tue, 14 Oct 2008 22:40:44 +0000 (-0700) Subject: Note url explaining this code. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f1cdfe0901f4c78dff56ae5c26d2801b97d50d5;p=thirdparty%2Fsamba.git Note url explaining this code. Jeremy. --- 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|