diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2012-01-29 05:37:39 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2012-01-29 05:48:45 +0100 |
commit | e7f32890335886cfa0f2f835413aed5af8ac2b53 (patch) | |
tree | 73c60658fbcfc52c5215fc5f8760d266b7249386 /src/udev-event.c | |
parent | a3642381eba4697b567cf4f21145532866c2e369 (diff) |
do not stop rule processing when device node is no longer around
Device nodes might have been deleted again by the kernel before an
'add' or 'change' event is even started. We need to run all rules,
regardless of the state in /dev.
Diffstat (limited to 'src/udev-event.c')
-rw-r--r-- | src/udev-event.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udev-event.c b/src/udev-event.c index 7ecaf85536..45dd77ba2e 100644 --- a/src/udev-event.c +++ b/src/udev-event.c @@ -894,7 +894,7 @@ int udev_event_execute_rules(struct udev_event *event, struct udev_rules *rules, udev_rules_apply_to_event(rules, event, sigmask); if (major(udev_device_get_devnum(dev)) != 0) - err = udev_node_remove(dev); + udev_node_remove(dev); } else { event->dev_db = udev_device_new_from_syspath(event->udev, udev_device_get_syspath(dev)); if (event->dev_db != NULL) { @@ -952,7 +952,7 @@ int udev_event_execute_rules(struct udev_event *event, struct udev_rules *rules, } } - err = udev_node_add(dev, event->mode, event->uid, event->gid); + udev_node_add(dev, event->mode, event->uid, event->gid); } /* preserve old, or get new initialization timestamp */ |