ifupdown: fix mapping for 'password', 'identity', and 'key'

This commit is contained in:
Alexander Sack 2009-03-03 12:58:33 -05:00 committed by Dan Williams
parent e273f87379
commit 333b1ec74f

View file

@ -301,9 +301,9 @@ update_wireless_security_setting_from_if_block(NMConnection *connection,
const gchar* value = ifparser_getkey (block, "inet");
struct _Mapping mapping[] = {
{"psk", "psk"},
{"identity", "identity"},
{"password", "password"},
{"key", "key"},
{"identity", "leap-username"},
{"password", "leap-password"},
{"key", "wep-key0"},
{"key-mgmt", "key-mgmt"},
{"group", "group"},
{"pairwise", "pairwise"},
@ -420,7 +420,7 @@ update_wireless_security_setting_from_if_block(NMConnection *connection,
property_value
#else // DEBUG_SECRETS
!strcmp("key", newkey) ||
!strcmp("password", newkey) ||
!strcmp("leap-password", newkey) ||
!strcmp("pin", newkey) ||
!strcmp("psk", newkey) ||
!strcmp("wep-key0", newkey) ||