NetworkManager r3677 - in trunk: . system-settings/plugins/ifcfg-fedora
- From: dcbw svn gnome org
- To: svn-commits-list gnome org
- Subject: NetworkManager r3677 - in trunk: . system-settings/plugins/ifcfg-fedora
- Date: Tue, 20 May 2008 21:27:33 +0000 (UTC)
Author: dcbw
Date: Tue May 20 21:27:33 2008
New Revision: 3677
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=3677&view=rev
Log:
2008-05-20 Dan Williams <dcbw redhat com>
* system-settings/plugins/ifcfg-fedora/reader.c
- (add_one_wep_key): handle ASCII WEP keys too
Modified:
trunk/ChangeLog
trunk/system-settings/plugins/ifcfg-fedora/reader.c
Modified: trunk/system-settings/plugins/ifcfg-fedora/reader.c
==============================================================================
--- trunk/system-settings/plugins/ifcfg-fedora/reader.c (original)
+++ trunk/system-settings/plugins/ifcfg-fedora/reader.c Tue May 20 21:27:33 2008
@@ -355,9 +355,10 @@
p++;
}
key = g_strdup (value);
- } else if (strlen (value) == 5 || strlen (value) == 13) {
+ } else if ( strncmp (value, "s:", 2)
+ && (strlen (value) == 7 || strlen (value) == 15)) {
/* ASCII passphrase */
- char *p = value;
+ char *p = value + 2;
while (*p) {
if (!isascii ((int) (*p))) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]