Lines Matching refs:aclentp
543 err_handle(int cnt, aclent_t *aclentp)
548 rc = aclcheck(aclentp, cnt, &which);
603 parse_entry(char *fieldp, aclent_t *aclentp, int mode)
633 aclentp->a_type = DEF_USER;
635 aclentp->a_type = USER;
639 aclentp->a_type = DEF_GROUP;
641 aclentp->a_type = GROUP;
645 aclentp->a_type = DEF_CLASS_OBJ;
647 aclentp->a_type = CLASS_OBJ;
651 aclentp->a_type = DEF_OTHER_OBJ;
653 aclentp->a_type = OTHER_OBJ;
657 if (aclentp->a_type == 0) {
664 if (aclentp->a_type != CLASS_OBJ && aclentp->a_type != OTHER_OBJ &&
665 aclentp->a_type != DEF_CLASS_OBJ &&
666 aclentp->a_type != DEF_OTHER_OBJ) {
682 if (aclentp->a_type == USER)
683 aclentp->a_type = USER_OBJ;
684 if (aclentp->a_type == DEF_USER)
685 aclentp->a_type = DEF_USER_OBJ;
686 if (aclentp->a_type == GROUP)
687 aclentp->a_type = GROUP_OBJ;
688 if (aclentp->a_type == DEF_GROUP)
689 aclentp->a_type = DEF_GROUP_OBJ;
692 if (aclentp->a_type == USER ||
693 aclentp->a_type == USER_OBJ ||
694 aclentp->a_type == DEF_USER ||
695 aclentp->a_type == DEF_USER_OBJ) {
697 aclentp->a_id = pwp->pw_uid;
703 aclentp->a_id = id;
708 aclentp->a_id = grp->gr_gid;
713 aclentp->a_id = id;
746 aclentp->a_perm = 0;
749 aclentp->a_perm += 4;
760 aclentp->a_perm += 2;
771 aclentp->a_perm += 1;
787 aclentp->a_perm = *fieldp - '0';
793 if (aclentp->a_perm == 0 && *++fieldp != '\0') {
796 aclentp->a_perm = *fieldp - '0';