summaryrefslogtreecommitdiff
path: root/udev
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2009-09-18 13:14:30 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-09-18 13:14:30 +0200
commit6068553195f43a2fd7987c48178de23b63a09f15 (patch)
tree8e695b6f13827da241daa8aecec3b99b10282748 /udev
parent676cea155a80b3a3e7b3d2fda1fce8a41d79e2b8 (diff)
rename interfaces to <iface>_rename if rename fails
Diffstat (limited to 'udev')
-rw-r--r--udev/udev-event.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/udev/udev-event.c b/udev/udev-event.c
index 701c061820..d5b4d0941e 100644
--- a/udev/udev-event.c
+++ b/udev/udev-event.c
@@ -492,8 +492,7 @@ static int rename_netif(struct udev_event *event)
}
/* free our own name, another process may wait for us */
- util_strscpy(ifr.ifr_newname, IFNAMSIZ, udev_device_get_sysname(dev));
- util_strscpy(ifr.ifr_newname, IFNAMSIZ, "_rename");
+ util_strscpyl(ifr.ifr_newname, IFNAMSIZ, udev_device_get_sysname(dev), "_rename", NULL);
err = ioctl(sk, SIOCSIFNAME, &ifr);
if (err != 0) {
err(event->udev, "error changing netif name %s to %s: %m\n",