chiark / gitweb /
let udevmonitor show the possibly renamed devpath
authorKay Sievers <kay.sievers@suse.de>
Thu, 6 Apr 2006 18:56:15 +0000 (20:56 +0200)
committerKay Sievers <kay.sievers@suse.de>
Thu, 6 Apr 2006 18:56:15 +0000 (20:56 +0200)
For renamed network interfaces, the udev socket message header
contained the original devpath, which we have updated in the
environment after the kernel has silently renamed the netif.

udevd.c

diff --git a/udevd.c b/udevd.c
index 2129d3c66a3751c906ecf3e908ae10b737c67876..b0c38eb41347ada9e082e51b8c25f2f7a801c2ef 100644 (file)
--- a/udevd.c
+++ b/udevd.c
@@ -130,7 +130,7 @@ static int udev_event_process(struct uevent_msg *msg)
                dbg("executing run list");
                list_for_each_entry(name_loop, &udev->run_list, node) {
                        if (strncmp(name_loop->name, "socket:", strlen("socket:")) == 0)
-                               pass_env_to_socket(&name_loop->name[strlen("socket:")], msg->devpath, msg->action);
+                               pass_env_to_socket(&name_loop->name[strlen("socket:")], udev->dev->devpath, udev->action);
                        else {
                                char program[PATH_SIZE];