chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2af003f
)
[PATCH] handle /etc/hotplug.d/ only if the event comes from udevd
author
kay.sievers@vrfy.org
<kay.sievers@vrfy.org>
Mon, 29 Nov 2004 03:47:59 +0000
(
04:47
+0100)
committer
Greg KH
<gregkh@suse.de>
Wed, 27 Apr 2005 06:00:29 +0000
(23:00 -0700)
udev.c
patch
|
blob
|
history
diff --git
a/udev.c
b/udev.c
index ca79bb4ec0e37812770ceaea2b76acf901d9e438..507f2be943a88e9142bc802f0f4da0ac95e53aa6 100644
(file)
--- 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;