[packages/systemd] restore code comment
glen
glen at pld-linux.org
Mon Mar 4 08:59:52 CET 2019
commit 489cb8481ffd8364594069fc53c74b50fa30f65a
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Mon Mar 4 09:59:34 2019 +0200
restore code comment
target-pld.patch | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/target-pld.patch b/target-pld.patch
index c9e4388..68758c1 100644
--- a/target-pld.patch
+++ b/target-pld.patch
@@ -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))
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/systemd.git/commitdiff/489cb8481ffd8364594069fc53c74b50fa30f65a
More information about the pld-cvs-commit
mailing list