Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 571785 Details for
Bug 802536
get_active_connections is always empty
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
An untested patch to fix NMClient initialization
nm-client-init.patch (text/plain), 1.70 KB, created by
Pavel Šimerda (pavlix)
on 2012-03-21 17:36:45 UTC
(
hide
)
Description:
An untested patch to fix NMClient initialization
Filename:
MIME Type:
Creator:
Pavel Šimerda (pavlix)
Created:
2012-03-21 17:36:45 UTC
Size:
1.70 KB
patch
obsolete
>Index: NetworkManager-0.9.3.997/libnm-glib/nm-client.c >=================================================================== >--- NetworkManager-0.9.3.997.orig/libnm-glib/nm-client.c >+++ NetworkManager-0.9.3.997/libnm-glib/nm-client.c >@@ -122,6 +122,25 @@ static void > nm_client_init (NMClient *client) > { > NMClientPrivate *priv = NM_CLIENT_GET_PRIVATE (client); >+ DBusGConnection *connection; >+ GError *err = NULL; >+ >+#ifdef LIBNM_GLIB_TEST >+ connection = dbus_g_bus_get (DBUS_BUS_SESSION, &err); >+#else >+ connection = dbus_g_bus_get (DBUS_BUS_SYSTEM, &err); >+#endif >+ if (!connection) { >+ g_warning ("Couldn't connect to system bus: %s", err->message); >+ g_error_free (err); >+ } >+ >+ g_object_set (client, >+ NM_OBJECT_DBUS_CONNECTION, connection, >+ NM_OBJECT_DBUS_PATH, NM_DBUS_PATH, >+ NULL); >+ _nm_object_ensure_inited (NM_OBJECT (client)); >+ > > priv->state = NM_STATE_UNKNOWN; > >@@ -1140,27 +1159,7 @@ client_device_removed (NMObject *client, > NMClient * > nm_client_new (void) > { >- DBusGConnection *connection; >- GError *err = NULL; >- NMClient *client; >- >-#ifdef LIBNM_GLIB_TEST >- connection = dbus_g_bus_get (DBUS_BUS_SESSION, &err); >-#else >- connection = dbus_g_bus_get (DBUS_BUS_SYSTEM, &err); >-#endif >- if (!connection) { >- g_warning ("Couldn't connect to system bus: %s", err->message); >- g_error_free (err); >- return NULL; >- } >- >- client = g_object_new (NM_TYPE_CLIENT, >- NM_OBJECT_DBUS_CONNECTION, connection, >- NM_OBJECT_DBUS_PATH, NM_DBUS_PATH, >- NULL); >- _nm_object_ensure_inited (NM_OBJECT (client)); >- return client; >+ return g_object_new (NM_TYPE_CLIENT, NULL); > } > > static void
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 802536
:
571785
|
571870