]> git.proxmox.com Git - systemd.git/blobdiff - src/core/hostname-setup.c
New upstream version 236
[systemd.git] / src / core / hostname-setup.c
index 845e31e1c596586c61834717cfa88336ac47e0d6..19299918cc1f1d9f947fab02540985b4aa0037f0 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1+ */
 /***
   This file is part of systemd.
 
@@ -36,7 +37,7 @@ int hostname_setup(void) {
         const char *hn;
         int r;
 
-        r = read_hostname_config("/etc/hostname", &b);
+        r = read_etc_hostname(NULL, &b);
         if (r < 0) {
                 if (r == -ENOENT)
                         enoent = true;