summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2012-10-25 22:22:29 +0200
committerKay Sievers <kay@vrfy.org>2012-10-25 22:22:29 +0200
commit3b0a5f2023cee149d2713327c04fc8103136bd91 (patch)
treed412f519bcd5aa23dfe5e34c8db4aba7783aa961 /src
parentf17491e27d5a4258516249a0369b95a0e1544ab8 (diff)
udev: hwdb - exit if no database is available
Diffstat (limited to 'src')
-rw-r--r--src/udev/udev-builtin-hwdb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/udev/udev-builtin-hwdb.c b/src/udev/udev-builtin-hwdb.c
index 0746698c46..1458795e99 100644
--- a/src/udev/udev-builtin-hwdb.c
+++ b/src/udev/udev-builtin-hwdb.c
@@ -277,6 +277,9 @@ static int builtin_hwdb(struct udev_device *dev, int argc, char *argv[], bool te
};
const char *subsys = NULL;
+ if (!trie.f)
+ return EXIT_SUCCESS;
+
for (;;) {
int option;