From 0cff18e055b09df22a519a948da2155fbcdad4f3 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 21 Mar 2019 15:03:14 +0100 Subject: [PATCH] libnm/team: indicate whether there were changes in _nm_utils_team_config_set() --- libnm-core/nm-utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libnm-core/nm-utils.c b/libnm-core/nm-utils.c index 39b9a7df34..89d3a1a303 100644 --- a/libnm-core/nm-utils.c +++ b/libnm-core/nm-utils.c @@ -6032,6 +6032,8 @@ done: conf_new = json_dumps (json, JSON_PRESERVE_ORDER); if (nm_streq0 (conf_new, "{}")) nm_clear_g_free (&conf_new); + if (nm_streq0 (conf_new, *conf)) + return FALSE; g_free (*conf); *conf = g_steal_pointer (&conf_new); return TRUE;