libcli/security: remove dup_sec_acl()
authorDavid Disseldorp <ddiss@samba.org>
Wed, 28 May 2014 13:43:34 +0000 (15:43 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 28 May 2014 23:08:25 +0000 (01:08 +0200)
With make_sec_desc() converted to use security_acl_dup(), which offers
the same behaviour, this function is no longer needed.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
libcli/security/secacl.c
libcli/security/secacl.h

index 8d2ae102f0701e44c46d30ee0f16c2344fceffa3..b90e3ae2d4aae1d74314737684ce72624f530dc3 100644 (file)
@@ -71,15 +71,3 @@ struct security_acl *make_sec_acl(TALLOC_CTX *ctx,
 
        return dst;
 }
-
-/*******************************************************************
- Duplicate a SEC_ACL structure.
-********************************************************************/
-
-struct security_acl *dup_sec_acl(TALLOC_CTX *ctx, struct security_acl *src)
-{
-       if(src == NULL)
-               return NULL;
-
-       return make_sec_acl(ctx, src->revision, src->num_aces, src->aces);
-}
index 90fafe9e042a6ab64597b45527bdbc84effdf388..c58d2c47fc32133876756b4f669027814ea4188f 100644 (file)
@@ -25,7 +25,6 @@
 
 struct security_acl *make_sec_acl(TALLOC_CTX *ctx, enum security_acl_revision revision,
                      int num_aces, struct security_ace *ace_list);
-struct security_acl *dup_sec_acl(TALLOC_CTX *ctx, struct security_acl *src);
 
 
 #endif /*_SECACL_H_*/