diff options
author | David Disseldorp <ddiss@samba.org> | 2014-05-28 15:43:34 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-05-29 01:08:25 +0200 |
commit | f0bc0ac893448905d57810d72d95a62fd35b7f1b (patch) | |
tree | 2a994872a78581c809259a9e7f2c85b83919f8b4 /libcli | |
parent | 256aa9b20bbc5f0005677981ab545edf7d52edd6 (diff) | |
download | samba-f0bc0ac893448905d57810d72d95a62fd35b7f1b.tar.gz |
libcli/security: remove dup_sec_acl()
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>
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/security/secacl.c | 12 | ||||
-rw-r--r-- | libcli/security/secacl.h | 1 |
2 files changed, 0 insertions, 13 deletions
diff --git a/libcli/security/secacl.c b/libcli/security/secacl.c index 8d2ae102f07..b90e3ae2d4a 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 90fafe9e042..c58d2c47fc3 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_*/ |