[PATCH 02/11] libcli/security: remove dup_sec_acl()
David Disseldorp
ddiss at samba.org
Wed May 28 16:09:37 MDT 2014
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 at samba.org>
---
libcli/security/secacl.c | 12 ------------
libcli/security/secacl.h | 1 -
2 files changed, 13 deletions(-)
diff --git a/libcli/security/secacl.c b/libcli/security/secacl.c
index 8d2ae10..b90e3ae 100644
--- a/libcli/security/secacl.c
+++ b/libcli/security/secacl.c
@@ -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);
-}
diff --git a/libcli/security/secacl.h b/libcli/security/secacl.h
index 90fafe9..c58d2c4 100644
--- a/libcli/security/secacl.h
+++ b/libcli/security/secacl.h
@@ -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_*/
--
1.8.4.5
More information about the samba-technical
mailing list