summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-08-30 16:29:05 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-09-11 18:46:11 +1000
commit96e59faa623ffa1faa50ecf7974c5ff00c9b6399 (patch)
treeb0e7c70e287aaa0da5f9cd957f0d0fdbca5a0338 /source3/lib
parent9883993b66826d2f692ebdd3c928f4f7a0cddc7d (diff)
downloadsamba-96e59faa623ffa1faa50ecf7974c5ff00c9b6399.tar.gz
samba-96e59faa623ffa1faa50ecf7974c5ff00c9b6399.tar.bz2
samba-96e59faa623ffa1faa50ecf7974c5ff00c9b6399.zip
s3-privs Remove unused function
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/privileges.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/source3/lib/privileges.c b/source3/lib/privileges.c
index 31b0e7dc55..f8ade863df 100644
--- a/source3/lib/privileges.c
+++ b/source3/lib/privileges.c
@@ -451,36 +451,6 @@ NTSTATUS privilege_delete_account(const struct dom_sid *sid)
return dbwrap_delete_bystring(db, keystr);
}
-/****************************************************************************
- duplicate alloc luid_attr
- ****************************************************************************/
-
-NTSTATUS dup_luid_attr(TALLOC_CTX *mem_ctx, struct lsa_LUIDAttribute **new_la, struct lsa_LUIDAttribute *old_la, int count)
-{
- int i;
-
- if ( !old_la )
- return NT_STATUS_OK;
-
- if (count) {
- *new_la = TALLOC_ARRAY(mem_ctx, struct lsa_LUIDAttribute, count);
- if ( !*new_la ) {
- DEBUG(0,("dup_luid_attr: failed to alloc new struct lsa_LUIDAttribute array [%d]\n", count));
- return NT_STATUS_NO_MEMORY;
- }
- } else {
- *new_la = NULL;
- }
-
- for (i=0; i<count; i++) {
- (*new_la)[i].luid.high = old_la[i].luid.high;
- (*new_la)[i].luid.low = old_la[i].luid.low;
- (*new_la)[i].attribute = old_la[i].attribute;
- }
-
- return NT_STATUS_OK;
-}
-
/*******************************************************************
*******************************************************************/