svn commit: samba r5943 - in branches/SAMBA_3_0/source/rpc_server: .

jerry at samba.org jerry at samba.org
Tue Mar 22 14:20:26 GMT 2005


Author: jerry
Date: 2005-03-22 14:20:25 +0000 (Tue, 22 Mar 2005)
New Revision: 5943

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

Log:
remove unneccessary se_priv_copy()
Modified:
   branches/SAMBA_3_0/source/rpc_server/srv_samr_nt.c


Changeset:
Modified: branches/SAMBA_3_0/source/rpc_server/srv_samr_nt.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_server/srv_samr_nt.c	2005-03-22 10:33:53 UTC (rev 5942)
+++ branches/SAMBA_3_0/source/rpc_server/srv_samr_nt.c	2005-03-22 14:20:25 UTC (rev 5943)
@@ -3821,7 +3821,6 @@
 	DOM_SID user_sid;
 	SAM_ACCOUNT *sam_pass=NULL;
 	uint32 acc_granted;
-	SE_PRIV se_rights;
 	BOOL can_add_accounts;
 	BOOL ret;
 
@@ -3847,8 +3846,7 @@
 		return NT_STATUS_NO_SUCH_USER;
 	}
 	
-	se_priv_copy( &se_rights, &se_add_users );
-	can_add_accounts = user_has_privileges( p->pipe_user.nt_user_token, &se_rights );
+	can_add_accounts = user_has_privileges( p->pipe_user.nt_user_token, &se_add_users );
 
 	/******** BEGIN SeAddUsers BLOCK *********/
 	



More information about the samba-cvs mailing list