]> git.pld-linux.org Git - packages/systemd.git/commitdiff
restore code comment auto/th/systemd-241-1
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 4 Mar 2019 07:59:34 +0000 (09:59 +0200)
committerElan Ruusamäe <glen@pld-linux.org>
Mon, 4 Mar 2019 07:59:34 +0000 (09:59 +0200)
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.739422 seconds and 4 git commands to generate.