summaryrefslogtreecommitdiff
path: root/src/libudev
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-07-01 19:39:50 +0200
committerKay Sievers <kay@vrfy.org>2013-07-01 19:39:50 +0200
commit3cf7b686e6b29f78de0af5929602cae4482f6d49 (patch)
treef41ebb62cfdb8e85de76c042e73632564175c274 /src/libudev
parentc221420be8744bb0f8b8a8145efc1f247f1aa801 (diff)
hwdb: remove support for (not fully implemented) conditional properties
Diffstat (limited to 'src/libudev')
-rw-r--r--src/libudev/libudev-hwdb.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libudev/libudev-hwdb.c b/src/libudev/libudev-hwdb.c
index a56ad753e4..5645a11437 100644
--- a/src/libudev/libudev-hwdb.c
+++ b/src/libudev/libudev-hwdb.c
@@ -140,9 +140,13 @@ static const struct trie_node_f *node_lookup_f(struct udev_hwdb *hwdb, const str
}
static int hwdb_add_property(struct udev_hwdb *hwdb, const char *key, const char *value) {
- /* TODO: add sub-matches (+) against DMI data */
+ /*
+ * Silently ignore all properties which do not start with a
+ * space; future extensions might use additional prefixes.
+ */
if (key[0] != ' ')
return 0;
+
if (udev_list_entry_add(&hwdb->properties_list, key+1, value) == NULL)
return -ENOMEM;
return 0;