Re: Latest Fedora 7 NM can't disable wireless
- From: dragoran <drago01 gmail com>
- To: "Dan Williams" <dcbw redhat com>
- Cc: Matthew Saltzman <mjs clemson edu>, NetworkManager-list gnome org
- Subject: Re: Latest Fedora 7 NM can't disable wireless
- Date: Tue, 26 Jun 2007 23:40:28 +0200
ok the attached patch fixes it for me.
when num_udis is 0 we still enter the loop (first iteration) which seems to cause this problem.
skipping it by returning if num_udis = 0 fixes it.
diff -ru NetworkManager-0.6.5.orig/src/NetworkManager.c NetworkManager-0.6.5/src/NetworkManager.c
--- NetworkManager-0.6.5.orig/src/NetworkManager.c 2007-06-21 14:00:30.000000000 +0200
+++ NetworkManager-0.6.5/src/NetworkManager.c 2007-06-26 23:29:17.000000000 +0200
@@ -534,7 +534,8 @@
udis = libhal_find_device_by_capability (data->hal_ctx, "killswitch", &num_udis, &error);
if (!udis)
return;
-
+ if(!num_udis)
+ return;
if (dbus_error_is_set (&error)) {
nm_warning("Could not find killswitch devices: %s", error.message);
dbus_error_free (&error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]