65 |
return &anubis_rc_sections[i]; |
return &anubis_rc_sections[i]; |
66 |
|
|
67 |
anubis_rc_sections[anubis_rc_numsections].name = name; |
anubis_rc_sections[anubis_rc_numsections].name = name; |
68 |
|
anubis_rc_sections[anubis_rc_numsections].allow_prog = 0; |
69 |
anubis_rc_sections[anubis_rc_numsections].child = NULL; |
anubis_rc_sections[anubis_rc_numsections].child = NULL; |
70 |
return &anubis_rc_sections[anubis_rc_numsections++]; |
return &anubis_rc_sections[anubis_rc_numsections++]; |
71 |
} |
} |
72 |
|
|
73 |
|
struct rc_secdef * |
74 |
|
anubis_find_section(char *name) |
75 |
|
{ |
76 |
|
int i; |
77 |
|
for (i = 0; i < anubis_rc_numsections; i++) |
78 |
|
if (strcmp(anubis_rc_sections[i].name, name) == 0) |
79 |
|
return &anubis_rc_sections[i]; |
80 |
|
return NULL; |
81 |
|
} |
82 |
|
|
83 |
void |
void |
84 |
open_rcfile(int method) |
open_rcfile(int method) |
85 |
{ |
{ |
471 |
break; |
break; |
472 |
|
|
473 |
case KW_EXTERNAL_BODY_PROCESSOR: |
case KW_EXTERNAL_BODY_PROCESSOR: |
474 |
session.execargs = list_to_argv(arglist); |
argv = list_to_argv(arglist); |
475 |
message_external_proc(msg, argv); |
message_external_proc(msg, argv); |
476 |
xfree_pptr(argv); |
xfree_pptr(argv); |
477 |
break; |
break; |
502 |
rule_section_init(void) |
rule_section_init(void) |
503 |
{ |
{ |
504 |
struct rc_secdef *sp = anubis_add_section("RULE"); |
struct rc_secdef *sp = anubis_add_section("RULE"); |
505 |
|
sp->allow_prog = 1; |
506 |
rc_secdef_add_child(sp, &rule_sect_child); |
rc_secdef_add_child(sp, &rule_sect_child); |
507 |
} |
} |
508 |
|
|