mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 21:38:06 +02:00
platform: fix linux nm_platform_link_get_physical_port_id() (rh #804527)
It was reading the wrong property name
This commit is contained in:
parent
0ff286adcf
commit
041f449a91
1 changed files with 1 additions and 1 deletions
|
|
@ -1765,7 +1765,7 @@ link_get_physical_port_id (NMPlatform *platform, int ifindex)
|
||||||
if (!ifname)
|
if (!ifname)
|
||||||
return NULL;
|
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))
|
if (g_file_test (path, G_FILE_TEST_EXISTS))
|
||||||
id = sysctl_get (platform, path);
|
id = sysctl_get (platform, path);
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue