From 1b1799e9ba70d5f190d89cef88ea67397db42c2c Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 16 Feb 2026 09:00:42 +0900 Subject: [PATCH] timesync: actually disables built-in fallback NTP servers when an empty string is specified Follow-up for 3745770ae4dcf262707882a38f6c5ba2684329a3. Fixes #40621. --- src/timesync/timesyncd-conf.c | 5 +++++ 1 file changed, 5 insertions(+) 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; } -- 2.47.3