1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-13 17:18:18 +03:00

resolved: add trailing newlines in generated file

Fixup for b3ffa2b5f3aa68dc6ab15893d5eeba8906aa3a9e.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-10-21 22:59:19 +02:00
parent 9c0780af5d
commit 31619e2f61

View File

@ -273,7 +273,7 @@ static int write_uplink_resolv_conf_contents(FILE *f, OrderedSet *dns, OrderedSe
} }
if (ordered_set_isempty(domains)) if (ordered_set_isempty(domains))
fputs("search .", f); /* Make sure that if the local hostname is chosen as fqdn this does not fputs("search .\n", f); /* Make sure that if the local hostname is chosen as fqdn this does not
* imply a search domain */ * imply a search domain */
else else
write_resolv_conf_search(domains, f); write_resolv_conf_search(domains, f);
@ -302,7 +302,7 @@ static int write_stub_resolv_conf_contents(FILE *f, OrderedSet *dns, OrderedSet
"options edns0 trust-ad\n", f); "options edns0 trust-ad\n", f);
if (ordered_set_isempty(domains)) if (ordered_set_isempty(domains))
fputs("search .", f); /* Make sure that if the local hostname is chosen as fqdn this does not fputs("search .\n", f); /* Make sure that if the local hostname is chosen as fqdn this does not
* imply a search domain */ * imply a search domain */
else else
write_resolv_conf_search(domains, f); write_resolv_conf_search(domains, f);