diff options
author | Günther Deschner <gd@samba.org> | 2010-06-05 02:39:11 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-06-07 10:33:36 +0200 |
commit | 4591fdbc18b0d7a1117de196675067e88bc341b7 (patch) | |
tree | 9eeb1685964f4ce048b05bcf8e16458b7a0b5142 /source3/lib/privileges.c | |
parent | f7696717800e82193e2b1ab1b3467e117306a769 (diff) | |
download | samba-4591fdbc18b0d7a1117de196675067e88bc341b7.tar.gz samba-4591fdbc18b0d7a1117de196675067e88bc341b7.tar.bz2 samba-4591fdbc18b0d7a1117de196675067e88bc341b7.zip |
s3-privileges: use LUID defines from lsa IDL.
Guenther
Diffstat (limited to 'source3/lib/privileges.c')
-rw-r--r-- | source3/lib/privileges.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/privileges.c b/source3/lib/privileges.c index 6da8aaa48d..86f84904f3 100644 --- a/source3/lib/privileges.c +++ b/source3/lib/privileges.c @@ -441,7 +441,7 @@ void privilege_set_free(PRIVILEGE_SET *priv_set) duplicate alloc luid_attr ****************************************************************************/ -NTSTATUS dup_luid_attr(TALLOC_CTX *mem_ctx, LUID_ATTR **new_la, LUID_ATTR *old_la, int count) +NTSTATUS dup_luid_attr(TALLOC_CTX *mem_ctx, struct lsa_LUIDAttribute **new_la, struct lsa_LUIDAttribute *old_la, int count) { int i; @@ -449,9 +449,9 @@ NTSTATUS dup_luid_attr(TALLOC_CTX *mem_ctx, LUID_ATTR **new_la, LUID_ATTR *old_l return NT_STATUS_OK; if (count) { - *new_la = TALLOC_ARRAY(mem_ctx, LUID_ATTR, count); + *new_la = TALLOC_ARRAY(mem_ctx, struct lsa_LUIDAttribute, count); if ( !*new_la ) { - DEBUG(0,("dup_luid_attr: failed to alloc new LUID_ATTR array [%d]\n", count)); + DEBUG(0,("dup_luid_attr: failed to alloc new struct lsa_LUIDAttribute array [%d]\n", count)); return NT_STATUS_NO_MEMORY; } } else { @@ -461,7 +461,7 @@ NTSTATUS dup_luid_attr(TALLOC_CTX *mem_ctx, LUID_ATTR **new_la, LUID_ATTR *old_l for (i=0; i<count; i++) { (*new_la)[i].luid.high = old_la[i].luid.high; (*new_la)[i].luid.low = old_la[i].luid.low; - (*new_la)[i].attr = old_la[i].attr; + (*new_la)[i].attribute = old_la[i].attribute; } return NT_STATUS_OK; |