From 927bda379205dfccd2fae8f5c54523230e0771a9 Mon Sep 17 00:00:00 2001 From: "kay.sievers@vrfy.org" Date: Mon, 29 Nov 2004 04:47:59 +0100 Subject: [PATCH] handle /etc/hotplug.d/ only if the event comes from udevd --- udev.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'udev.c') diff --git a/udev.c b/udev.c index ca79bb4e..507f2be9 100644 --- a/udev.c +++ b/udev.c @@ -61,6 +61,10 @@ static int manage_hotplug_event(void) { int fd; int len; + /* false, if we are called directly */ + if (!getenv("MANAGED_EVENT")) + goto exit; + fd = open("/proc/sys/kernel/hotplug", O_RDONLY); if (fd < 0) goto exit; -- cgit 1.2.3-korg