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 0746698c46177d82256f4faa2d4d5dd52a7dcf5c..1458795e993bb151d69b0164421aafc725f71081 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;