summaryrefslogtreecommitdiff
path: root/udevd.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-11-28 13:56:22 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:00:29 -0700
commit4497fcbf7159975560b680fd8130adcd414d3d67 (patch)
tree29113ddd2bb00567e598c348d75ca25b4912701b /udevd.c
parent9a50eb497fa9d54e0dbb249f5a58d3c16bb937d0 (diff)
[PATCH] udevsend/udevd handle events without a subsystem
Accept event without a subsystem and pass it through udevd. Pass empty environment while starting udevd.
Diffstat (limited to 'udevd.c')
-rw-r--r--udevd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/udevd.c b/udevd.c
index 06b172bc25..58f5be94bc 100644
--- a/udevd.c
+++ b/udevd.c
@@ -124,6 +124,7 @@ static void msg_queue_insert(struct hotplug_msg *msg)
/* forks event and removes event from run queue when finished */
static void udev_run(struct hotplug_msg *msg)
{
+ char *const argv[] = { "udev", msg->subsystem, NULL };
pid_t pid;
pid = fork();
@@ -132,7 +133,7 @@ static void udev_run(struct hotplug_msg *msg)
/* child */
close(udevsendsock);
logging_close();
- execle(udev_bin, "udev", msg->subsystem, NULL, msg->envp);
+ execve(udev_bin, argv, msg->envp);
dbg("exec of child failed");
_exit(1);
break;