]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: fix comments in resolve.conf for search domain overflows (#3422)
authorMartin Pitt <martin.pitt@ubuntu.com>
Fri, 3 Jun 2016 09:15:44 +0000 (11:15 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 3 Jun 2016 09:15:44 +0000 (11:15 +0200)
commitd2bc1251320c9e69c5fc6953f01aba80cafd5029
tree75ce6d469f8ae0f4188bcf020c918bf167c5b6bd
parent21fce63ecff9b72a9cb2d1ee9fa6f42de98702a8
resolved: fix comments in resolve.conf for search domain overflows (#3422)

Write comments about "too many search domains" and "Total length of all search
domains is too long" just once. Also put it on a separate line, as
resolv.conf(5) only specifies comments in a line by themselves.

This is ugly to do if write_resolv_conf_search() gets called once for every
search domain. So change it to receive the complete OrderedSet instead and do
the iteration by itself.

Add test cases to networkd-test.py.

https://launchpad.net/bugs/1588229
src/resolve/resolved-resolv-conf.c
test/networkd-test.py