]> git.ipfire.org Git - thirdparty/systemd.git/commit
network:dhcp4_server_configure returns if not able to get timezone v248.3
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:33:34 +0000 (18:33 +0200)
commit37c4cfde0ce613f0f00544d3f4e2e72bf93d9c76
treea69147031fdf696258bc4a6a328cb9034f91f4b9
parent596f5101f29c10256208132bfa9c502bf898fd8b
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

(cherry picked from commit 7b5018ca9e6d3279887ec7113818f41d5b831c4d)
src/network/networkd-dhcp-server.c