summaryrefslogblamecommitdiffstats
path: root/source/a/eudev/eudev.ignore_bind_unbind_events.diff
blob: 71e975b3316f5ee913dfdfb07a2b23fcb7dda9ec (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                                                          
diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c
index d0befba29..790498c97 100644
--- a/src/udev/udev-event.c
+++ b/src/udev/udev-event.c
@@ -855,6 +855,11 @@ void udev_event_execute_rules(struct udev_event *event,
         if (udev_device_get_subsystem(dev) == NULL)
                 return;
 
+        if (streq(udev_device_get_action(dev), "bind") || streq(udev_device_get_action(dev), "unbind")) {
+            // Ignore bind/unbind events
+            return;
+        }
+
         if (streq(udev_device_get_action(dev), "remove")) {
                 udev_device_read_db(dev);
                 udev_device_tag_index(dev, NULL, false);