]> git.pld-linux.org Git - packages/systemd.git/blobdiff - target-pld.patch
restore code comment
[packages/systemd.git] / target-pld.patch
index c9e4388882f15b73565ac1f903619faafb8629a5..68758c116a0f20d43cce4dcd8b7fd4b3be2d6b27 100644 (file)
@@ -28,7 +28,7 @@
 +        r = parse_env_file(NULL, "/etc/sysconfig/network", "HOSTNAME", &p);
 +        if (r < 0)
 +                return r;
-+        if (!p)
++        if (!p) /* EOF without any hostname? the file is empty, let's treat that exactly like no file at all: ENOENT */
 +                return -ENOENT;
 +        hostname_cleanup(p);
 +         if (!hostname_is_valid(p, true))
This page took 0.032958 seconds and 4 git commands to generate.