From: Kay Sievers Date: Tue, 28 Jun 2011 18:57:05 +0000 (+0200) Subject: libudev: device - fix udev_device_get_tags_list_entry() to always load database X-Git-Tag: 174~86 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bbafbfd4f18ab68702ee514f806ff5b917821c5;p=systemd libudev: device - fix udev_device_get_tags_list_entry() to always load database --- diff --git a/TODO b/TODO index 4e1d7231..3ae38744 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,4 @@ - - detect uevent loops !!! + - remove RUN+="socket:" - use 'udevd:' in logs diff --git a/libudev/libudev-device.c b/libudev/libudev-device.c index 8289acf3..1ac0760f 100644 --- a/libudev/libudev-device.c +++ b/libudev/libudev-device.c @@ -1641,6 +1641,8 @@ UDEV_EXPORT struct udev_list_entry *udev_device_get_tags_list_entry(struct udev_ { if (udev_device == NULL) return NULL; + if (!udev_device->info_loaded) + udev_device_read_db(udev_device, NULL); return udev_list_get_entry(&udev_device->tags_list); }