From: Yu Watanabe Date: Mon, 30 Oct 2017 09:34:41 +0000 (+0900) Subject: resolved: change newline position in stub-resolv.conf (#7216) X-Git-Tag: v236~282 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=21df96c0b0df2393bb71591253ff0f74ffa4f178;p=thirdparty%2Fsystemd.git resolved: change newline position in stub-resolv.conf (#7216) Follow-up for e6b2d948f8f5aabf6cdede8bd39256fe83db205e. --- diff --git a/src/resolve/resolved-resolv-conf.c b/src/resolve/resolved-resolv-conf.c index 4944e299a49..08058b3ad48 100644 --- a/src/resolve/resolved-resolv-conf.c +++ b/src/resolve/resolved-resolv-conf.c @@ -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);