chiark / gitweb /
Properly report invalid quoted strings
[elogind.git] / src / timesync / timesyncd.c
index 8bb79fb5ee339fc9f8e574b5600f726ac314148c..1bd8cf56145809a4605868b2fd357541965fc8a8 100644 (file)
@@ -1001,6 +1001,8 @@ static int manager_add_server_string(Manager *m, const char *string) {
                 if (r < 0)
                         log_error("Failed to add server %s to configuration, ignoring: %s", t, strerror(-r));
         }
+        if (!isempty(state))
+                log_warning("Trailing garbage at the end of server list, ignoring.");
 
         return 0;
 }