svn commit: samba r3950 - in trunk/source/smbd: .

jra at samba.org jra at samba.org
Thu Nov 25 00:59:38 GMT 2004


Author: jra
Date: 2004-11-25 00:59:37 +0000 (Thu, 25 Nov 2004)
New Revision: 3950

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=3950

Log:
Fix for bugid #2081 reported by John Janosik <jpjanosi at us.ibm.com> - ensure
SE_DESC_DACL_PROTECTED is set if "map acl inherit = no".
Jeremy.

Modified:
   trunk/source/smbd/posix_acls.c


Changeset:
Modified: trunk/source/smbd/posix_acls.c
===================================================================
--- trunk/source/smbd/posix_acls.c	2004-11-25 00:25:53 UTC (rev 3949)
+++ trunk/source/smbd/posix_acls.c	2004-11-25 00:59:37 UTC (rev 3950)
@@ -2880,9 +2880,11 @@
 		 * inherited at file create time, so ACLs never contain
 		 * any ACEs that are inherited dynamically. The DACL_PROTECTED
 		 * flag doesn't seem to bother Windows NT.
+		 * Always set this if map acl inherit is turned off.
 		 */
-		if (get_protected_flag(pal))
+		if (get_protected_flag(pal) || !lp_map_acl_inherit(SNUM(conn))) {
 			psd->type |= SE_DESC_DACL_PROTECTED;
+		}
 	}
 
 	if (psd->dacl)



More information about the samba-cvs mailing list