/[anubis]/anubis/src/rc.c
ViewVC logotype

Diff of /anubis/src/rc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.21 by polak, Sun Jun 29 19:03:38 2003 UTC revision 1.22 by gray, Mon Jun 30 21:52:23 2003 UTC
# Line 65  anubis_add_section(char *name) Line 65  anubis_add_section(char *name)
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  {  {
# Line 460  rule_parser(int method, int key, LIST *a Line 471  rule_parser(int method, int key, LIST *a
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;
# Line 491  void Line 502  void
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    

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26