[PATCH] handle /etc/hotplug.d/ only if the event comes from udevd

This commit is contained in:
kay.sievers@vrfy.org
2005-04-26 23:00:29 -07:00
committed by Greg KH
parent 2af003feb2
commit 927bda3792
+4
View File
@@ -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;