]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
timesync: actually disables built-in fallback NTP servers when an empty string is... 40692/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 16 Feb 2026 00:00:42 +0000 (09:00 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 16 Feb 2026 00:53:03 +0000 (09:53 +0900)
Follow-up for 3745770ae4dcf262707882a38f6c5ba2684329a3.
Fixes #40621.

src/timesync/timesyncd-conf.c

index f0af1f9d437b63c75a203167d4e02a8d9daeec65..a273c0af9f0ab8133937409610d741478212ed07 100644 (file)
@@ -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;
         }