mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-05 09:17:44 +03:00
udev: fix ID_NET_NAME_MAC= udev property
This fixes a bug introduced byeaba9bb3e6
. The commit mistakenly drops 'x' in ID_NET_NAME_MAC, and adds colons. The colons were dropped by the commitdfa4876c41
, but the missing 'x' was not added at that time. Follow-up fordfa4876c41
. (cherry picked from commit60e930fc3e
)
This commit is contained in:
parent
dedf981ff4
commit
cd76e5956a
@ -1018,7 +1018,7 @@ static int builtin_net_id(sd_device *dev, sd_netlink **rtnl, int argc, char *arg
|
||||
if (names_mac(dev, &info) >= 0) {
|
||||
char str[ALTIFNAMSIZ];
|
||||
|
||||
xsprintf(str, "%s%s", prefix, HW_ADDR_TO_STR_FULL(&info.hw_addr, HW_ADDR_TO_STRING_NO_COLON));
|
||||
xsprintf(str, "%sx%s", prefix, HW_ADDR_TO_STR_FULL(&info.hw_addr, HW_ADDR_TO_STRING_NO_COLON));
|
||||
udev_builtin_add_property(dev, test, "ID_NET_NAME_MAC", str);
|
||||
log_device_debug(dev, "MAC address identifier: hw_addr=%s → %s",
|
||||
HW_ADDR_TO_STR(&info.hw_addr), str + strlen(prefix));
|
||||
|
Loading…
Reference in New Issue
Block a user