summaryrefslogtreecommitdiff
path: root/src/udev/udev-event.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-03-06 15:22:30 +0100
committerTom Gundersen <teg@jklm.no>2015-03-12 12:03:50 +0100
commit8f0f13f04555d3bc67511d2e334c667cef7e8971 (patch)
tree04925aaac97305fc06e8d9829a20aef7f4954d3e /src/udev/udev-event.c
parenta4445e88cece0444c66d70876b03065158dd4685 (diff)
libudev: introduce clone_with_db()
This allows us to move the db reading from udevd to libudev.
Diffstat (limited to 'src/udev/udev-event.c')
-rw-r--r--src/udev/udev-event.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c
index 4ca73d3dbf..f62c1eaf47 100644
--- a/src/udev/udev-event.c
+++ b/src/udev/udev-event.c
@@ -807,11 +807,8 @@ void udev_event_execute_rules(struct udev_event *event,
udev_device_delete_db(dev);
udev_device_tag_index(dev, NULL, false);
} else {
- event->dev_db = udev_device_shallow_clone(dev);
+ event->dev_db = udev_device_clone_with_db(dev);
if (event->dev_db != NULL) {
- udev_device_read_db(event->dev_db);
- udev_device_set_info_loaded(event->dev_db);
-
/* disable watch during event processing */
if (major(udev_device_get_devnum(dev)) != 0)
udev_watch_end(event->udev, event->dev_db);