resolved: change newline position in stub-resolv.conf (#7216)

Follow-up for e6b2d948f8.
This commit is contained in:
Yu Watanabe 2017-10-30 18:34:41 +09:00 committed by Lennart Poettering
parent 64d2753a87
commit 21df96c0b0

View file

@ -243,8 +243,8 @@ static int write_uplink_resolv_conf_contents(FILE *f, OrderedSet *dns, OrderedSe
static int write_stub_resolv_conf_contents(FILE *f, OrderedSet *dns, OrderedSet *domains) {
fputs("# This file is managed by man:systemd-resolved(8). Do not edit.\n#\n"
"# 127.0.0.53 is the systemd-resolved stub resolver.\n"
"# run \"systemd-resolve --status\" to see details about the actual nameservers.\n"
"nameserver 127.0.0.53\n\n", f);
"# run \"systemd-resolve --status\" to see details about the actual nameservers.\n\n"
"nameserver 127.0.0.53\n", f);
if (!ordered_set_isempty(domains))
write_resolv_conf_search(domains, f);