[systemd-devel] [RFC][PATCH] conf-parser: distinguish between multiple sections with the same name

Thomas Bächler thomas at archlinux.org
Wed Nov 20 05:57:49 PST 2013


Am 20.11.2013 14:38, schrieb Tom Gundersen:
> Pass on the line on which a section was decleared to the parsers, so they
> can distinguish between multiple sections (if they chose to). Currently
> no parsers take advantage of this, but a follow-up patch will do that
> to distinguish
> 
> [Address]
> Address=192.168.0.1/24
> Label=one
> 
> [Address]
> Address=192.168.0.2/24
> Label=two
> 
> from
> 
> [Address]
> Address=192.168.0.1/24
> Label=one
> Address=192.168.0.2/24
> Label=two

This is a bad idea. When we have a config file

[Section]
Foo=bar

[Section]
Foo=baz

and have a corresponding .d snippet with

[Section]
Foo=bay

what does this mean? Does it override the value of the first section,
the second section or does it create a new section?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20131120/7d61e9eb/attachment.pgp>


More information about the systemd-devel mailing list