summaryrefslogtreecommitdiff
path: root/src/udev
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-02-08 11:13:01 -0500
committerAnthony G. Basile <blueness@gentoo.org>2015-02-08 11:13:01 -0500
commit7edee6302ec0759f5bb84f07c0c352377be7ac5d (patch)
tree2c43650f644386b304bc8e7ef4ccd3226ca73fb7 /src/udev
parent318c9e4c8ce45ffa800bbd14d3f994c3c8692e7f (diff)
udev: event - introduce and use internal udev_device_shallow_clone()
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/udev')
-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 ae645457ac..df1bb81fe8 100644
--- a/src/udev/udev-event.c
+++ b/src/udev/udev-event.c
@@ -872,11 +872,8 @@ void udev_event_execute_rules(struct udev_event *event,
if (major(udev_device_get_devnum(dev)) != 0)
udev_node_remove(dev);
} else {
- event->dev_db = udev_device_new(event->udev);
+ event->dev_db = udev_device_shallow_clone(dev);
if (event->dev_db != NULL) {
- udev_device_set_syspath(event->dev_db, udev_device_get_syspath(dev));
- udev_device_set_subsystem(event->dev_db, udev_device_get_subsystem(dev));
- udev_device_set_devnum(event->dev_db, udev_device_get_devnum(dev));
udev_device_read_db(event->dev_db, NULL);
udev_device_set_info_loaded(event->dev_db);