]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolved: add trailing newlines in generated file 17415/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 21 Oct 2020 20:59:19 +0000 (22:59 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 22 Oct 2020 09:55:35 +0000 (11:55 +0200)
Fixup for b3ffa2b5f3aa68dc6ab15893d5eeba8906aa3a9e.

src/resolve/resolved-resolv-conf.c

index 40f1f32f0a8b01ca73f50fa88a7dafd7038b461e..ba8f18f82d9b625b4ab901773c3e9cfc3e55ca8e 100644 (file)
@@ -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);