From 14fb002b1c88dc15551cd6fbae74008589e3be61 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Mon, 20 Feb 2017 16:50:03 +0100 Subject: fixup! nm-policy: detect if the hostname was changed outside NetworkManager --- src/nm-policy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nm-policy.c b/src/nm-policy.c index 18e222552d..5a16768c06 100644 --- a/src/nm-policy.c +++ b/src/nm-policy.c @@ -553,7 +553,7 @@ update_system_hostname (NMPolicy *self, NMDevice *best4, NMDevice *best6) /* Check if the hostname was set externally to NM, so that in that case * we can avoid to fallback to the one we got when we started */ if ( (_get_hostname (&temp_hostname) == 0) - && nm_utils_is_specific_hostname(temp_hostname) + && nm_utils_is_specific_hostname (temp_hostname) && !nm_streq0 (temp_hostname, priv->last_hostname)) { hostname_changed = TRUE; _LOGI (LOGD_DNS, "current hostname was changed outside NetworkManager: '%s'", -- cgit v1.2.1