sd-device: also store properties read from udev database to sd_device::properties_db
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 15 Feb 2019 20:21:59 +0000 (05:21 +0900)
committerAdrian Bunk <bunk@debian.org>
Thu, 30 Mar 2023 19:32:31 +0000 (20:32 +0100)
commita554c96a83ba233baa6e3703f256f3e1268ddb2e
treee6c8031ef95e42d2bfba5d8aaa50736f46cd6c4b
parentbf1aea51cfe444c00e38c7d038c7e9ec7f3397cf
sd-device: also store properties read from udev database to sd_device::properties_db

Follow-up for a3ce813697bcc1c4644e097a2f1cd0459326d6ee and
5ce41697bd3ddc19cd6e1e6834751082ca0c8b02.

Before a3ce813697bcc1c4644e097a2f1cd0459326d6ee, all properties in
src->properties and src->properties_db are mixed and copied to
dst->properties_db by device_copy_properties().
So, it is not necessary to store data from udev database file to
sd_device::properties_db before copying properties.

But now, properties are not mixed. So, the read data need to be
stored to also ::properties_db.

Fixes #11721.

(cherry picked from commit 03dd7b7ddec1b0e06f254972a2e05f516a05edaf)

Gbp-Pq: Name sd-device-also-store-properties-read-from-udev-database-t.patch
src/libsystemd/sd-device/sd-device.c