diff options
author | David Disseldorp <ddiss@samba.org> | 2014-05-26 16:25:31 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-05-28 17:52:13 +0200 |
commit | 58b8c87d0f56b7f868594357d014e4c662644b22 (patch) | |
tree | 135fed56dd173771a3d8b5434edbd44808c0cd67 /libcli/security/secdesc.c | |
parent | 23a95931d3b868c6e6bcda0c214be6a12434ae8b (diff) | |
download | samba-58b8c87d0f56b7f868594357d014e4c662644b22.tar.gz |
libcli/secdesc: remove dup_sec_desc()
With all callers converted to use security_descriptor_copy(), this
function can be removed.
Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'libcli/security/secdesc.c')
-rw-r--r-- | libcli/security/secdesc.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/libcli/security/secdesc.c b/libcli/security/secdesc.c index 72ba2dba589..44897b5953d 100644 --- a/libcli/security/secdesc.c +++ b/libcli/security/secdesc.c @@ -242,22 +242,6 @@ error_exit: } /******************************************************************* - Duplicate a struct security_descriptor structure. -********************************************************************/ - -struct security_descriptor *dup_sec_desc(TALLOC_CTX *ctx, const struct security_descriptor *src) -{ - size_t dummy; - - if(src == NULL) - return NULL; - - return make_sec_desc( ctx, src->revision, src->type, - src->owner_sid, src->group_sid, src->sacl, - src->dacl, &dummy); -} - -/******************************************************************* Convert a secdesc into a byte stream ********************************************************************/ NTSTATUS marshall_sec_desc(TALLOC_CTX *mem_ctx, |