diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-10-21 22:59:19 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-10-22 11:55:35 +0200 |
commit | 31619e2f61b6d5101d8b081099c94854b261d829 (patch) | |
tree | 759e8d71f73dc2f59cfca749f312be88ac231cdf /src/resolve/resolved-resolv-conf.c | |
parent | 9c0780af5da59fb1494553133187cc9baadc21b2 (diff) | |
download | systemd-31619e2f61b6d5101d8b081099c94854b261d829.tar.gz |
resolved: add trailing newlines in generated file
Fixup for b3ffa2b5f3aa68dc6ab15893d5eeba8906aa3a9e.
Diffstat (limited to 'src/resolve/resolved-resolv-conf.c')
-rw-r--r-- | src/resolve/resolved-resolv-conf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resolve/resolved-resolv-conf.c b/src/resolve/resolved-resolv-conf.c index 40f1f32f0a..ba8f18f82d 100644 --- a/src/resolve/resolved-resolv-conf.c +++ b/src/resolve/resolved-resolv-conf.c @@ -273,8 +273,8 @@ static int write_uplink_resolv_conf_contents(FILE *f, OrderedSet *dns, OrderedSe } if (ordered_set_isempty(domains)) - fputs("search .", f); /* Make sure that if the local hostname is chosen as fqdn this does not - * imply a search domain */ + fputs("search .\n", f); /* Make sure that if the local hostname is chosen as fqdn this does not + * imply a search domain */ else write_resolv_conf_search(domains, f); @@ -302,8 +302,8 @@ static int write_stub_resolv_conf_contents(FILE *f, OrderedSet *dns, OrderedSet "options edns0 trust-ad\n", f); if (ordered_set_isempty(domains)) - fputs("search .", f); /* Make sure that if the local hostname is chosen as fqdn this does not - * imply a search domain */ + fputs("search .\n", f); /* Make sure that if the local hostname is chosen as fqdn this does not + * imply a search domain */ else write_resolv_conf_search(domains, f); |