From: Zbigniew Jędrzejewski-Szmek Date: Tue, 28 Jul 2015 02:21:07 +0000 (-0400) Subject: networkd: allow trailing dot on fqdn in config file X-Git-Tag: v225~100^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=79f17ea6f8d885da063f50d966891adaee236b26;p=thirdparty%2Fsystemd.git networkd: allow trailing dot on fqdn in config file --- diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c index e3ac70ff333..9a19109b9fe 100644 --- a/src/network/networkd-network.c +++ b/src/network/networkd-network.c @@ -838,14 +838,14 @@ int config_parse_hostname(const char *unit, if (r < 0) return r; - if (!hostname_is_valid(hn, false)) { + if (!hostname_is_valid(hn, true)) { log_syntax(unit, LOG_ERR, filename, line, EINVAL, "hostname is not valid, ignoring assignment: %s", rvalue); free(hn); return 0; } - *hostname = hn; + *hostname = hostname_cleanup(hn, false); return 0; }