diff options
author | Volker Lendecke <vl@samba.org> | 2007-12-20 22:27:01 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2007-12-21 09:58:21 +0100 |
commit | 99b86e4a266b99634f6a65015f6df115c421d3e5 (patch) | |
tree | 80d4826f844551ec2b3be8a84b896a8ed3acc203 /source3/lib/secace.c | |
parent | addf598cde41d17ad4cf497a64b9a2b27e4028c5 (diff) | |
download | samba-99b86e4a266b99634f6a65015f6df115c421d3e5.tar.gz samba-99b86e4a266b99634f6a65015f6df115c421d3e5.tar.bz2 samba-99b86e4a266b99634f6a65015f6df115c421d3e5.zip |
Some C++ fixes
(This used to be commit 5c392c4c6e277a24d0d477902dc7856b2b46ee53)
Diffstat (limited to 'source3/lib/secace.c')
-rw-r--r-- | source3/lib/secace.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/lib/secace.c b/source3/lib/secace.c index 9e533a5a28..90ecc342cd 100644 --- a/source3/lib/secace.c +++ b/source3/lib/secace.c @@ -54,7 +54,8 @@ void sec_ace_copy(SEC_ACE *ace_dest, SEC_ACE *ace_src) Sets up a SEC_ACE structure. ********************************************************************/ -void init_sec_ace(SEC_ACE *t, const DOM_SID *sid, uint8 type, uint32 mask, uint8 flag) +void init_sec_ace(SEC_ACE *t, const DOM_SID *sid, enum security_ace_type type, + uint32 mask, uint8 flag) { t->type = type; t->flags = flag; @@ -83,7 +84,7 @@ NTSTATUS sec_ace_add_sid(TALLOC_CTX *ctx, SEC_ACE **pp_new, SEC_ACE *old, unsign for (i = 0; i < *num - 1; i ++) sec_ace_copy(&(*pp_new)[i], &old[i]); - (*pp_new)[i].type = 0; + (*pp_new)[i].type = SEC_ACE_TYPE_ACCESS_ALLOWED; (*pp_new)[i].flags = 0; (*pp_new)[i].size = SEC_ACE_HEADER_SIZE + sid_size(sid); (*pp_new)[i].access_mask = mask; |