summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2017-02-20 16:50:03 +0100
committerBeniamino Galvani <bgalvani@redhat.com>2017-02-20 16:50:03 +0100
commit14fb002b1c88dc15551cd6fbae74008589e3be61 (patch)
tree1b944b6180e62913874fc13a736ce9e4cd3e360d
parentc97cc52ac66d00d76023c9cdc4c61742dbb4b593 (diff)
downloadNetworkManager-keep_externally_set_hostname-rh1422610.tar.gz
fixup! nm-policy: detect if the hostname was changed outside NetworkManagerkeep_externally_set_hostname-rh1422610
-rw-r--r--src/nm-policy.c2
1 files changed, 1 insertions, 1 deletions
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'",