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
@@ -1015,7 +1015,7 @@ static int unit_file_load(
}
r = config_parse(NULL, path, f, NULL,
config_item_table_lookup, (void*) items, true, info);
config_item_table_lookup, (void*) items, true, true, info);
if (r < 0)
return r;