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

jra at samba.org jra at samba.org
Thu Sep 23 00:19:27 GMT 2004


Author: jra
Date: 2004-09-23 00:19:24 +0000 (Thu, 23 Sep 2004)
New Revision: 2549

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/trunk/source/smbd&rev=2549&nolog=1

Log:
Fix for bug reported by Edward Spragins <spragins at gmail.com> - don't try to
set security descriptors on shares where this has been turned off.
Jeremy.

Modified:
   trunk/source/smbd/nttrans.c


Changeset:
Modified: trunk/source/smbd/nttrans.c
===================================================================
--- trunk/source/smbd/nttrans.c	2004-09-23 00:19:18 UTC (rev 2548)
+++ trunk/source/smbd/nttrans.c	2004-09-23 00:19:24 UTC (rev 2549)
@@ -1081,7 +1081,7 @@
 	TALLOC_CTX *mem_ctx;
 	BOOL ret;
 	
-	if (sd_len == 0) {
+	if (sd_len == 0 || !lp_nt_acl_support(SNUM(fsp->conn))) {
 		return NT_STATUS_OK;
 	}
 
@@ -1415,7 +1415,8 @@
 	 * Now try and apply the desired SD.
 	 */
 
-	if (sd_len && !NT_STATUS_IS_OK(status = set_sd( fsp, data, sd_len, ALL_SECURITY_INFORMATION))) {
+	if (lp_nt_acl_support(SNUM(conn)) && sd_len &&
+			!NT_STATUS_IS_OK(status = set_sd( fsp, data, sd_len, ALL_SECURITY_INFORMATION))) {
 		close_file(fsp,False);
 		restore_case_semantics(conn, file_attributes);
 		return ERROR_NT(status);



More information about the samba-cvs mailing list