chiark / gitweb /
udev: hwdb - exit if no database is available
authorKay Sievers <kay@vrfy.org>
Thu, 25 Oct 2012 20:22:29 +0000 (22:22 +0200)
committerKay Sievers <kay@vrfy.org>
Thu, 25 Oct 2012 20:22:29 +0000 (22:22 +0200)
src/udev/udev-builtin-hwdb.c

index 0746698..1458795 100644 (file)
@@ -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;