libnm-util: don't touch dhcp-send-hostname when setting dhcp-hostname (rh #1001529)

It is better to leave it to user whether he wants to enable sending hostname,
because he probably disabled it manually (dhcp-send-hostname is TRUE by default).
Also, this would not work for plugins that read and set dhcp-hostname after
dhcp-send-hostname.

https://bugzilla.redhat.com/show_bug.cgi?id=1001529
This commit is contained in:
Jiří Klimeš 2013-12-05 12:11:36 +01:00
parent e299d7b30f
commit 98bcbd2d24

View file

@ -908,9 +908,6 @@ set_property (GObject *object, guint prop_id,
case PROP_DHCP_HOSTNAME:
g_free (priv->dhcp_hostname);
priv->dhcp_hostname = g_value_dup_string (value);
/* FIXME: Is this a good idea? */
if (priv->dhcp_hostname)
priv->dhcp_send_hostname = TRUE;
break;
case PROP_NEVER_DEFAULT:
priv->never_default = g_value_get_boolean (value);