keyfile: don't put VPN 'user-name' property to vpn.data on read (rh #1060460)

https://bugzilla.redhat.com/show_bug.cgi?id=1060460
This commit is contained in:
Jiří Klimeš 2014-04-24 17:22:16 +02:00
parent 429023b24e
commit 050c30da0b

View file

@ -610,7 +610,7 @@ read_hash_of_string (GKeyFile *file, NMSetting *setting, const char *key)
continue;
if (NM_IS_SETTING_VPN (setting)) {
if (strcmp (*iter, NM_SETTING_VPN_SERVICE_TYPE))
if (strcmp (*iter, NM_SETTING_VPN_SERVICE_TYPE) && strcmp (*iter, NM_SETTING_VPN_USER_NAME))
nm_setting_vpn_add_data_item (NM_SETTING_VPN (setting), *iter, value);
}
if (NM_IS_SETTING_BOND (setting)) {