/[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.28 by polak, Mon Jul 21 10:42:41 2003 UTC revision 1.29 by gray, Thu Aug 14 12:33:25 2003 UTC
# Line 99  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:
                 rc_section_list_destroy(&parse_tree);  
102                  if (topt & T_ALTRC) {                  if (topt & T_ALTRC) {
103                          rcfile = strdup(options.altrc);                          rcfile = strdup(options.altrc);
104                  } else if (check_superuser())                  } else if (check_superuser())
# Line 112  open_rcfile(int method) Line 111  open_rcfile(int method)
111                          sprintf(rcfile, "%s/%s", homedir,                          sprintf(rcfile, "%s/%s", homedir,
112                                  DEFAULT_LOCAL_RCFILE);                                  DEFAULT_LOCAL_RCFILE);
113                  }                  }
114                    
115                  if (check_filename(rcfile, &global_mtime) == 0) {                  if (check_filename(rcfile, &global_mtime) == 0) {
116                          free(rcfile);                          free(rcfile);
117                          return;                          return;
118                  }                  }
119                    rc_section_list_destroy(&parse_tree);
120                  info(DEBUG,                  info(DEBUG,
121                       _("Reading system configuration file %s..."), rcfile);                       _("Reading system configuration file %s..."), rcfile);
122                  break;                  break;
# Line 332  control_parser(int method, int key, LIST Line 332  control_parser(int method, int key, LIST
332    
333  static struct rc_kwdef init_kw[] = {  static struct rc_kwdef init_kw[] = {
334          { "bind", KW_BIND },          { "bind", KW_BIND },
         { "rule-priority", KW_RULE_PRIORITY },  
         { "control-priority", KW_CONTROL_PRIORITY },  
335          { NULL },          { NULL },
336  };  };
337    
# Line 350  static struct rc_kwdef init_supervisor_k Line 348  static struct rc_kwdef init_supervisor_k
348          { "allow-local-mta", KW_ALLOW_LOCAL_MTA },          { "allow-local-mta", KW_ALLOW_LOCAL_MTA },
349          { "user-notprivileged", KW_USER_NOTPRIVILEGED },          { "user-notprivileged", KW_USER_NOTPRIVILEGED },
350          { "drop-unknown-user", KW_DROP_UNKNOWN_USER },          { "drop-unknown-user", KW_DROP_UNKNOWN_USER },
351            { "rule-priority", KW_RULE_PRIORITY },
352            { "control-priority", KW_CONTROL_PRIORITY },
353          { NULL }          { NULL }
354  };  };
355    

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

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