From 96e59faa623ffa1faa50ecf7974c5ff00c9b6399 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 30 Aug 2010 16:29:05 +1000 Subject: s3-privs Remove unused function Signed-off-by: Andrew Tridgell --- source3/include/proto.h | 1 - source3/lib/privileges.c | 30 ------------------------------ 2 files changed, 31 deletions(-) (limited to 'source3') diff --git a/source3/include/proto.h b/source3/include/proto.h index e15dc7b5a1..f316a377dc 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -648,7 +648,6 @@ NTSTATUS privilege_delete_account(const struct dom_sid *sid); NTSTATUS privilege_set_init(PRIVILEGE_SET *priv_set); NTSTATUS privilege_set_init_by_ctx(TALLOC_CTX *mem_ctx, PRIVILEGE_SET *priv_set); void privilege_set_free(PRIVILEGE_SET *priv_set); -NTSTATUS dup_luid_attr(TALLOC_CTX *mem_ctx, struct lsa_LUIDAttribute **new_la, struct lsa_LUIDAttribute *old_la, int count); bool is_privileged_sid( const struct dom_sid *sid ); bool grant_all_privileges( const struct dom_sid *sid ); 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