From: Yu Watanabe Date: Mon, 16 Feb 2026 00:00:42 +0000 (+0900) Subject: timesync: actually disables built-in fallback NTP servers when an empty string is... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b1799e9ba70d5f190d89cef88ea67397db42c2c;p=thirdparty%2Fsystemd.git timesync: actually disables built-in fallback NTP servers when an empty string is specified Follow-up for 3745770ae4dcf262707882a38f6c5ba2684329a3. Fixes #40621. --- diff --git a/src/timesync/timesyncd-conf.c b/src/timesync/timesyncd-conf.c index f0af1f9d437..a273c0af9f0 100644 --- a/src/timesync/timesyncd-conf.c +++ b/src/timesync/timesyncd-conf.c @@ -86,6 +86,11 @@ int config_parse_servers( if (isempty(rvalue)) { manager_flush_server_names(m, ltype); + + /* FallbackNTP= with an empty string disables the built-in fallback servers. */ + if (ltype == SERVER_FALLBACK) + m->fallback_set = true; + return 0; }