NetworkManager/fix-read-phys-port-id.patch
Jiří Klimeš 25f86691e2 Fix various problems
- core: fix reading physical port id for sysfs
- libnm-glib: export get_gateway() and get_searches() functions
- libnm-glib: new functions for bindings to get nameservers
- libnm-glib: chain up the parent constructed() of NMRemoteConnection
- core: exit cleanly if D-Bus cannot be initialized (rh #1057738)
- dhcp: don't add an IPv6 address if one wasn't given (rh #1048046)
- core: Add host route for DHCP4 server if outside assigned subnet (bgo #721767) (rh #983325)
- vpn: handle missing tunnel interface for IP-based VPNs (bgo #721724) (rh #1030068) (rh #865883)
- core: only log about IPv6 Commit the first time (rh #1044757)
2014-01-28 15:23:07 +01:00

33 lines
1.0 KiB
Diff

From 041f449a910a48716bc88fa56287c4213a2dcb11 Mon Sep 17 00:00:00 2001
From: Dan Winship <danw@gnome.org>
Date: Wed, 22 Jan 2014 13:20:18 -0500
Subject: [PATCH] platform: fix linux nm_platform_link_get_physical_port_id()
(rh #804527)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
It was reading the wrong property name
Signed-off-by: Jiří Klimeš <jklimes@redhat.com>
---
src/platform/nm-linux-platform.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c
index 83cbc49..8e85c59 100644
--- a/src/platform/nm-linux-platform.c
+++ b/src/platform/nm-linux-platform.c
@@ -1765,7 +1765,7 @@ link_get_physical_port_id (NMPlatform *platform, int ifindex)
if (!ifname)
return NULL;
- path = g_strdup_printf ("/sys/class/net/%s/physical_port_id", ifname);
+ path = g_strdup_printf ("/sys/class/net/%s/phys_port_id", ifname);
if (g_file_test (path, G_FILE_TEST_EXISTS))
id = sysctl_get (platform, path);
else
--
1.7.11.7