[network-manager-applet] applet: fix vpnc secret flag migration
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet] applet: fix vpnc secret flag migration
- Date: Thu, 10 Mar 2011 07:48:02 +0000 (UTC)
commit a1a8c47d657a88a001809451f842acd844f3c13b
Author: Dan Williams <dcbw redhat com>
Date: Thu Mar 10 01:49:05 2011 -0600
applet: fix vpnc secret flag migration
src/gconf-helpers/gconf-upgrade.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gconf-helpers/gconf-upgrade.c b/src/gconf-helpers/gconf-upgrade.c
index d700102..2098865 100644
--- a/src/gconf-helpers/gconf-upgrade.c
+++ b/src/gconf-helpers/gconf-upgrade.c
@@ -2026,11 +2026,11 @@ nm_gconf_migrate_0_7_certs (GConfClient *client)
static NMSettingSecretFlags
vpnc_type_to_flag (const char *vpnc_type)
{
- if (g_strcmp0 (vpnc_type, NM_VPNC_PW_TYPE_SAVE))
+ if (g_strcmp0 (vpnc_type, NM_VPNC_PW_TYPE_SAVE) == 0)
return NM_SETTING_SECRET_FLAG_NONE;
- if (g_strcmp0 (vpnc_type, NM_VPNC_PW_TYPE_ASK))
+ if (g_strcmp0 (vpnc_type, NM_VPNC_PW_TYPE_ASK) == 0)
return NM_SETTING_SECRET_FLAG_NOT_SAVED;
- if (g_strcmp0 (vpnc_type, NM_VPNC_PW_TYPE_UNUSED))
+ if (g_strcmp0 (vpnc_type, NM_VPNC_PW_TYPE_UNUSED) == 0)
return NM_SETTING_SECRET_FLAG_NOT_REQUIRED;
return NM_SETTING_SECRET_FLAG_NONE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]