From 88bb8d215aa0f5576eb3f9c77c30cdc4b17783fe Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 28 Jun 2011 23:02:38 +0200 Subject: [PATCH] logind: call udev_device_get_is_initialized() to trigger lazy loading, as a temporary work-around for broken libudev --- src/logind-dbus.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/logind-dbus.c b/src/logind-dbus.c index 91f30320..57ee2ee2 100644 --- a/src/logind-dbus.c +++ b/src/logind-dbus.c @@ -542,6 +542,8 @@ static bool device_has_tag(struct udev_device *d, const char *tag) { assert(d); assert(tag); + udev_device_get_is_initialized(d); + first = udev_device_get_tags_list_entry(d); udev_list_entry_foreach(item, first) if (streq(udev_list_entry_get_name(item), tag)) -- 2.39.5