conf-parser: restrict .include usage

Disallow recursive .include, and make it unavailable in anything but
unit files.
This commit is contained in:
Lennart Poettering
2013-04-25 00:05:14 -03:00
parent 60b6991a4d
commit db5c012285
11 changed files with 26 additions and 24 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ static void parse_conf(void) {
return;
r = config_parse(NULL, BOOTCHART_CONF, f,
NULL, config_item_table_lookup, (void*) items, true, NULL);
NULL, config_item_table_lookup, (void*) items, true, false, NULL);
if (r < 0)
log_warning("Failed to parse configuration file: %s", strerror(-r));