svn commit: samba r4995 - in branches/SAMBA_3_0/source/lib: .

jerry at samba.org jerry at samba.org
Tue Jan 25 23:32:20 GMT 2005


Author: jerry
Date: 2005-01-25 23:32:19 +0000 (Tue, 25 Jan 2005)
New Revision: 4995

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

Log:
fail set_privileges() if 'enable privileges = no' to prevent confused admins who never read what I write :-)
Modified:
   branches/SAMBA_3_0/source/lib/privileges.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/privileges.c
===================================================================
--- branches/SAMBA_3_0/source/lib/privileges.c	2005-01-25 23:30:05 UTC (rev 4994)
+++ branches/SAMBA_3_0/source/lib/privileges.c	2005-01-25 23:32:19 UTC (rev 4995)
@@ -228,6 +228,9 @@
 	fstring keystr;
 	TDB_DATA key, data;
 	
+	if ( !lp_enable_privileges() )
+		return False;
+
 	if ( !tdb )
 		return False;
 



More information about the samba-cvs mailing list