Lines Matching refs:the_acl
358 static BOOL add_ace(SEC_ACL **the_acl, SEC_ACE *ace)
362 if (! *the_acl) {
363 return (((*the_acl) = make_sec_acl(ctx, 3, 1, ace)) != NULL);
366 if (!(aces = SMB_CALLOC_ARRAY(SEC_ACE, 1+(*the_acl)->num_aces))) {
369 memcpy(aces, (*the_acl)->aces, (*the_acl)->num_aces * sizeof(SEC_ACE));
370 memcpy(aces+(*the_acl)->num_aces, ace, sizeof(SEC_ACE));
371 new_ace = make_sec_acl(ctx,(*the_acl)->revision,1+(*the_acl)->num_aces, aces);
373 (*the_acl) = new_ace;
605 static void sort_acl(SEC_ACL *the_acl)
608 if (!the_acl) return;
610 qsort(the_acl->aces, the_acl->num_aces, sizeof(the_acl->aces[0]), QSORT_CAST ace_compare);
612 for (i=1;i<the_acl->num_aces;) {
613 if (sec_ace_equal(&the_acl->aces[i-1], &the_acl->aces[i])) {
615 for (j=i; j<the_acl->num_aces-1; j++) {
616 the_acl->aces[j] = the_acl->aces[j+1];
618 the_acl->num_aces--;
629 char *the_acl, enum acl_mode mode)
637 sd = sec_desc_parse(the_acl);
808 static char *the_acl = NULL;
854 the_acl = smb_xstrdup(poptGetOptArg(pc));
859 the_acl = smb_xstrdup(poptGetOptArg(pc));
864 the_acl = smb_xstrdup(poptGetOptArg(pc));
869 the_acl = smb_xstrdup(poptGetOptArg(pc));
937 } else if (the_acl) {
938 result = cacl_set(cli, filename, the_acl, mode);