mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 09:30:31 +01: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)
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue