summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-03-22 14:20:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:09 -0500
commit43f4930ed3210910b2a1f1ff0c04d9c8ed9f238d (patch)
treecdb1a66209afa716b090a793df09bbd6a9216006 /source3
parentebb9ba6ddc88d53656eddf0149abc99299bb6a3e (diff)
downloadsamba-43f4930ed3210910b2a1f1ff0c04d9c8ed9f238d.tar.gz
samba-43f4930ed3210910b2a1f1ff0c04d9c8ed9f238d.tar.bz2
samba-43f4930ed3210910b2a1f1ff0c04d9c8ed9f238d.zip
r5943: remove unneccessary se_priv_copy()
(This used to be commit 2db04a90c4197a3950bbc322948468cb306b3557)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_samr_nt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index 139960f661..9e75dd6f7c 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -3821,7 +3821,6 @@ NTSTATUS _samr_delete_dom_user(pipes_struct *p, SAMR_Q_DELETE_DOM_USER *q_u, SAM
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 @@ NTSTATUS _samr_delete_dom_user(pipes_struct *p, SAMR_Q_DELETE_DOM_USER *q_u, SAM
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 *********/