/[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.24 by gray, Tue Jul 15 10:15:22 2003 UTC revision 1.25 by gray, Tue Jul 15 14:46:42 2003 UTC
# Line 66  anubis_add_section(char *name) Line 66  anubis_add_section(char *name)
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;          anubis_rc_sections[anubis_rc_numsections].allow_prog = 0;
69            anubis_rc_sections[anubis_rc_numsections].prio = prio_user_only;
70          anubis_rc_sections[anubis_rc_numsections].child = NULL;          anubis_rc_sections[anubis_rc_numsections].child = NULL;
71          return &anubis_rc_sections[anubis_rc_numsections++];          return &anubis_rc_sections[anubis_rc_numsections++];
72  }  }
# Line 98  open_rcfile(int method) Line 99  open_rcfile(int method)
99          switch (method) {          switch (method) {
100          case CF_SUPERVISOR:          case CF_SUPERVISOR:
101          case CF_INIT:          case CF_INIT:
102                    rc_section_list_destroy(&parse_tree);
103                  if (topt & T_ALTRC) {                  if (topt & T_ALTRC) {
104                          rcfile = strdup(options.altrc);                          rcfile = strdup(options.altrc);
105                  } else if (check_superuser())                  } else if (check_superuser())
# Line 208  control_parser(int method, int key, LIST Line 210  control_parser(int method, int key, LIST
210          case KW_RULE_PRIORITY:          case KW_RULE_PRIORITY:
211                  if (strcasecmp(arg, "user") == 0)                  if (strcasecmp(arg, "user") == 0)
212                          anubis_section_set_prio("RULE", prio_user);                          anubis_section_set_prio("RULE", prio_user);
213                    else if (strcasecmp(arg, "user-only") == 0)
214                            anubis_section_set_prio("RULE", prio_user_only);
215                  else if (strcasecmp(arg, "system") == 0)                  else if (strcasecmp(arg, "system") == 0)
216                          anubis_section_set_prio("RULE", prio_system);                          anubis_section_set_prio("RULE", prio_system);
217                  else if (strcasecmp(arg, "override") == 0)                  else if (strcasecmp(arg, "system-only") == 0)
218                          anubis_section_set_prio("RULE", prio_override);                          anubis_section_set_prio("RULE", prio_system_only);
219                  else                  else
220                          return RC_KW_ERROR;                          return RC_KW_ERROR;
221                  break;                  break;

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

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