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()) |
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; |
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 |
|
|
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 |
|
|