conf-parser: let's explicitly deprecate .include in unit files
authorLennart Poettering <lennart@poettering.net>
Fri, 23 Feb 2018 19:46:38 +0000 (20:46 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 21 Mar 2018 19:04:16 +0000 (20:04 +0100)
commit41b283d0f1f4abd85d0bbeeb7f71bb30f87cfab9
treece5964d3c0d0c6b4105f9c9c05541163b36642e1
parent37cbc1d57992f49b3607bd66973dd30e0a8d1073
conf-parser: let's explicitly deprecate .include in unit files

.include lines are already deprecated somewhat, and for example
explicitly not mentioned in the documentation for this reason. Let's get
one step further and generatea warning when we encounter them (but still
process them).

Why are they deprecated? Because they are semantically awful — they
complicate stat() based mtime checks for configuration files and they
allow arbitrary loops we currently have zero protection against and
really shouldn't have to have.
src/shared/conf-parser.c