]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-dhcp-server.c
network:dhcp4_server_configure returns if not able to get timezone
authortramsay <treyramsay@gmail.com>
Mon, 5 Apr 2021 22:12:49 +0000 (17:12 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 15 May 2021 16:14:49 +0000 (18:14 +0200)
commit7b5018ca9e6d3279887ec7113818f41d5b831c4d
tree8abce13058f666f6190c95fd0148f904d14f4541
parent1fa94a312447f80d67e1883142f532927ff793e7
network:dhcp4_server_configure returns if not able to get timezone

When /etc/localtime is a symbolic link pointing to another symbolic
link, get_timezone will return -EINVAL instead of the timezone.
This issue can cause systemd-networkd DHCPServer to fail.

Instead of returning failure, log a warning indicating that that
the timezone will not be sent.

modified:   networkd-dhcp-server.c
src/network/networkd-dhcp-server.c