/[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.25 by gray, Tue Jul 15 14:46:42 2003 UTC revision 1.26 by gray, Fri Jul 18 14:37:16 2003 UTC
# Line 176  process_rcfile(int method) Line 176  process_rcfile(int method)
176  #define KW_READ_ENTIRE_BODY   12  #define KW_READ_ENTIRE_BODY   12
177  #define KW_DROP_UNKNOWN_USER  13  #define KW_DROP_UNKNOWN_USER  13
178  #define KW_RULE_PRIORITY      14  #define KW_RULE_PRIORITY      14
179    #define KW_CONTROL_PRIORITY   15
180    
181  char **  char **
182  list_to_argv(LIST *list)  list_to_argv(LIST *list)
# Line 219  control_parser(int method, int key, LIST Line 220  control_parser(int method, int key, LIST
220                  else                  else
221                          return RC_KW_ERROR;                          return RC_KW_ERROR;
222                  break;                  break;
223    
224            case KW_CONTROL_PRIORITY:
225                    if (strcasecmp(arg, "user") == 0)
226                            anubis_section_set_prio("CONTROL", prio_user);
227                    else if (strcasecmp(arg, "system") == 0)
228                            anubis_section_set_prio("CONTROL", prio_system);
229                    else
230                            return RC_KW_ERROR;
231                    break;
232                                    
233          case KW_TERMLEVEL:                    case KW_TERMLEVEL:          
234                  if (strcmp("silent", arg) == 0)                  if (strcmp("silent", arg) == 0)
# Line 323  control_parser(int method, int key, LIST Line 333  control_parser(int method, int key, LIST
333  static struct rc_kwdef init_kw[] = {  static struct rc_kwdef init_kw[] = {
334          { "bind", KW_BIND },          { "bind", KW_BIND },
335          { "rule-priority", KW_RULE_PRIORITY },          { "rule-priority", KW_RULE_PRIORITY },
336            { "control-priority", KW_CONTROL_PRIORITY },
337          { NULL },          { NULL },
338  };  };
339    
# Line 452  void Line 463  void
463  control_section_init(void)  control_section_init(void)
464  {  {
465          struct rc_secdef *sp = anubis_add_section("CONTROL");          struct rc_secdef *sp = anubis_add_section("CONTROL");
466            sp->prio = prio_system;
467          rc_secdef_add_child(sp, &init_sect_child);          rc_secdef_add_child(sp, &init_sect_child);
468          rc_secdef_add_child(sp, &init_supervisor_sect_child);          rc_secdef_add_child(sp, &init_supervisor_sect_child);
469          rc_secdef_add_child(sp, &client_sect_child);          rc_secdef_add_child(sp, &client_sect_child);

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

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