resolved: change newline position in stub-resolv.conf (#7216)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 30 Oct 2017 09:34:41 +0000 (18:34 +0900)
committerLennart Poettering <lennart@poettering.net>
Mon, 30 Oct 2017 09:34:41 +0000 (10:34 +0100)
Follow-up for e6b2d948f8f5aabf6cdede8bd39256fe83db205e.

src/resolve/resolved-resolv-conf.c

index 4944e29..08058b3 100644 (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);