1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-08 11:27:32 +03:00

networkd: allow trailing dot on fqdn in config file

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2015-07-27 22:21:07 -04:00
parent 34ad609010
commit 79f17ea6f8

View File

@ -838,14 +838,14 @@ int config_parse_hostname(const char *unit,
if (r < 0) if (r < 0)
return r; 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); log_syntax(unit, LOG_ERR, filename, line, EINVAL, "hostname is not valid, ignoring assignment: %s", rvalue);
free(hn); free(hn);
return 0; return 0;
} }
*hostname = hn; *hostname = hostname_cleanup(hn, false);
return 0; return 0;
} }