From 041f449a910a48716bc88fa56287c4213a2dcb11 Mon Sep 17 00:00:00 2001 From: Dan Winship 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š --- 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