Merge lp:~vorlon/network-manager/lp.199140 into lp:~network-manager/network-manager/ubuntu.0.7.1

Proposed by Steve Langasek
Status: Merged
Approved by: Alexander Sack
Approved revision: 21
Merged at revision: not available
Proposed branch: lp:~vorlon/network-manager/lp.199140
Merge into: lp:~network-manager/network-manager/ubuntu.0.7.1
Diff against target: None lines
To merge this branch: bzr merge lp:~vorlon/network-manager/lp.199140
Reviewer Review Type Date Requested Status
Alexander Sack Approve
Review via email: mp+4055@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Alexander Sack (asac) wrote :

seems to be ok. I will guard the new check with is_wired and move scope of the netdev_parent to the if block. Thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'changelog'
2--- changelog 2009-02-25 23:48:45 +0000
3+++ changelog 2009-03-02 03:38:41 +0000
4@@ -5,6 +5,12 @@
5 + NETWORKMANAGER_0_7 (branch)
6 + Feb 25, 2009 (7f1c86e3)
7
8+ [ Steve Langasek ]
9+ * src/nm-hal-manager.c: ignore virtual 'wired' devices whose
10+ originating device is /org/freedesktop/Hal/devices/computer, since
11+ these are generally managed by some other daemon and network-manager
12+ just gets in the way. LP: #199140.
13+
14 -- Alexander Sack <asac@ubuntu.com> Thu, 26 Feb 2009 00:47:52 +0100
15
16 network-manager (0.7.1~rc1+20090220-0ubuntu2) jaunty; urgency=low
17
18=== added file 'patches/lp199140_dont_manage_virtual_devices.patch'
19--- patches/lp199140_dont_manage_virtual_devices.patch 1970-01-01 00:00:00 +0000
20+++ patches/lp199140_dont_manage_virtual_devices.patch 2009-03-02 03:38:41 +0000
21@@ -0,0 +1,28 @@
22+Index: network-manager-0.7.1~rc1+20090220/src/nm-hal-manager.c
23+===================================================================
24+--- network-manager-0.7.1~rc1+20090220.orig/src/nm-hal-manager.c
25++++ network-manager-0.7.1~rc1+20090220/src/nm-hal-manager.c
26+@@ -140,7 +140,7 @@
27+ is_wired_device (NMHalManager *self, const char *udi)
28+ {
29+ NMHalManagerPrivate *priv = NM_HAL_MANAGER_GET_PRIVATE (self);
30+- char *category;
31++ char *category, *netdev_parent;
32+ gboolean is_wired = FALSE;
33+
34+ if (libhal_device_property_exists (priv->hal_ctx, udi, "net.linux.ifindex", NULL) &&
35+@@ -153,6 +153,14 @@
36+ }
37+ }
38+
39++ if (libhal_device_property_exists (priv->hal_ctx, udi, "net.originating_device", NULL))
40++ {
41++ netdev_parent = libhal_device_get_property_string (priv->hal_ctx, udi, "net.originating_device", NULL);
42++ if (!strcmp(netdev_parent, "/org/freedesktop/Hal/devices/computer"))
43++ is_wired = FALSE;
44++ libhal_free_string (netdev_parent);
45++ }
46++
47+ return is_wired;
48+ }
49+
50
51=== modified file 'patches/series'
52--- patches/series 2009-02-14 21:32:02 +0000
53+++ patches/series 2009-03-02 03:38:41 +0000
54@@ -9,5 +9,6 @@
55 lp291902_IFUPDOWN_dont_export_connection_in_unmanaged_mode.patch
56 lp303142_more_time_for_manual_registration.patch
57 lp120363_smartcard_pkcs11.patch
58+lp199140_dont_manage_virtual_devices.patch
59
60 # debian patches

Subscribers

People subscribed via source and target branches