diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2004-11-29 04:47:59 +0100 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-27 08:00:29 +0200 |
commit | 927bda379205dfccd2fae8f5c54523230e0771a9 (patch) | |
tree | d69e747faf854448d3306e3859f9d2c87a4e7d25 | |
parent | [PATCH] trivial cleanups and change some comments (diff) | |
download | systemd-927bda379205dfccd2fae8f5c54523230e0771a9.tar.xz systemd-927bda379205dfccd2fae8f5c54523230e0771a9.zip |
[PATCH] handle /etc/hotplug.d/ only if the event comes from udevd
-rw-r--r-- | udev.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |