* Returns a pointer to the alias structure or NULL if not found.
*/
struct alias *
-find_alias(name, type)
+alias_find(name, type)
char *name;
int type;
{
matched = !m->negated;
break;
case ALIAS:
- if ((a = find_alias(m->name, USERALIAS)) != NULL) {
+ if ((a = alias_find(m->name, USERALIAS)) != NULL) {
rval = _userlist_matches(pw, &a->members);
if (rval != UNSPEC)
matched = m->negated ? !rval : rval;
matched = !m->negated;
break;
case ALIAS:
- if ((a = find_alias(m->name, RUNASALIAS)) != NULL) {
+ if ((a = alias_find(m->name, RUNASALIAS)) != NULL) {
rval = _runaslist_matches(&a->members, &empty);
if (rval != UNSPEC)
matched = m->negated ? !rval : rval;
matched = !m->negated;
break;
case ALIAS:
- if ((a = find_alias(m->name, RUNASALIAS)) != NULL) {
+ if ((a = alias_find(m->name, RUNASALIAS)) != NULL) {
rval = _runaslist_matches(&a->members, &empty);
if (rval != UNSPEC)
matched = m->negated ? !rval : rval;
matched = !m->negated;
break;
case ALIAS:
- if ((a = find_alias(m->name, HOSTALIAS)) != NULL) {
+ if ((a = alias_find(m->name, HOSTALIAS)) != NULL) {
rval = _hostlist_matches(&a->members);
if (rval != UNSPEC)
matched = m->negated ? !rval : rval;
break;
case ALIAS:
alias_seqno++;
- if ((a = find_alias(m->name, CMNDALIAS)) != NULL) {
+ if ((a = alias_find(m->name, CMNDALIAS)) != NULL) {
rval = _cmndlist_matches(&a->members);
if (rval != UNSPEC)
matched = m->negated ? !rval : rval;
}
break;
case ALIAS:
- if ((a = find_alias(name, alias_type)) != NULL) {
+ if ((a = alias_find(name, alias_type)) != NULL) {
tq_foreach_fwd(&a->members, m) {
if (m != tq_first(&a->members))
lbuf_append(lbuf, ", ", NULL);
int usergr_matches __P((char *, char *, struct passwd *));
int userpw_matches __P((char *, char *, struct passwd *));
int group_matches __P((char *, struct group *));
-struct alias *find_alias __P((char *, int));
+struct alias *alias_find __P((char *, int));
void alias_apply __P((int (*)(void *, void *), void *));
void init_aliases __P((void));
void init_parser __P((char *, int));
struct alias *a;
alias_seqno++;
- if ((a = find_alias(name, type)) != NULL) {
+ if ((a = alias_find(name, type)) != NULL) {
tq_foreach_fwd(&a->members, m) {
if (m->type == ALIAS) {
alias_remove_recursive(m->name, type);
tq_foreach_fwd(&us->users, m) {
if (m->type == ALIAS) {
alias_seqno++;
- if (find_alias(m->name, USERALIAS) == NULL) {
+ if (alias_find(m->name, USERALIAS) == NULL) {
warningx("%s: User_Alias `%s' referenced but not defined",
strict ? "Error" : "Warning", m->name);
error++;
tq_foreach_fwd(&priv->hostlist, m) {
if (m->type == ALIAS) {
alias_seqno++;
- if (find_alias(m->name, HOSTALIAS) == NULL) {
+ if (alias_find(m->name, HOSTALIAS) == NULL) {
warningx("%s: Host_Alias `%s' referenced but not defined",
strict ? "Error" : "Warning", m->name);
error++;
tq_foreach_fwd(&cs->runasuserlist, m) {
if (m->type == ALIAS) {
alias_seqno++;
- if (find_alias(m->name, RUNASALIAS) == NULL) {
+ if (alias_find(m->name, RUNASALIAS) == NULL) {
warningx("%s: Runas_Alias `%s' referenced but not defined",
strict ? "Error" : "Warning", m->name);
error++;
}
if ((m = cs->cmnd)->type == ALIAS) {
alias_seqno++;
- if (find_alias(m->name, CMNDALIAS) == NULL) {
+ if (alias_find(m->name, CMNDALIAS) == NULL) {
warningx("%s: Cmnd_Alias `%s' referenced but not defined",
strict ? "Error" : "Warning", m->name);
error++;