summaryrefslogtreecommitdiff
path: root/udev/udev-event.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-04-20 17:30:30 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-04-20 17:30:30 +0200
commit5e8176e1569de2469321f63aee1765e51bc5ded0 (patch)
treec24bc601ef716db64e46937029f7fc9681a77802 /udev/udev-event.c
parentead7c62ab7641e150c6d668f939c102a6771ce60 (diff)
udevd: netif rename - use ifindex for temporary name
Diffstat (limited to 'udev/udev-event.c')
-rw-r--r--udev/udev-event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev/udev-event.c b/udev/udev-event.c
index e583cec292..dfd5c37857 100644
--- a/udev/udev-event.c
+++ b/udev/udev-event.c
@@ -868,7 +868,7 @@ static int rename_netif(struct udev_event *event)
goto out;
/* free our own name, another process may wait for us */
- util_strscpyl(ifr.ifr_newname, IFNAMSIZ, udev_device_get_sysname(dev), "-", event->name, NULL);
+ snprintf(ifr.ifr_newname, IFNAMSIZ, "rename%u", udev_device_get_ifindex(dev));
err = ioctl(sk, SIOCSIFNAME, &ifr);
if (err < 0) {
err = -errno;