aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-04-06 20:56:15 +0200
committerKay Sievers <kay.sievers@suse.de>2006-04-06 20:56:15 +0200
commit03149e13c2f70f93e370c94f9c9a71129287bc1b (patch)
treef408f90f94dabfff1a561e4278b8e1d81dbe4000
parent3e5d5cb773f41d70b9e22bef36839101e0c51fd7 (diff)
downloadudev-03149e13c2f70f93e370c94f9c9a71129287bc1b.tar.gz
let udevmonitor show the possibly renamed devpath
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.
-rw-r--r--udevd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udevd.c b/udevd.c
index 2129d3c6..b0c38eb4 100644
--- 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];