chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f17491e
)
udev: hwdb - exit if no database is available
author
Kay Sievers
<kay@vrfy.org>
Thu, 25 Oct 2012 20:22:29 +0000
(22:22 +0200)
committer
Kay Sievers
<kay@vrfy.org>
Thu, 25 Oct 2012 20:22:29 +0000
(22:22 +0200)
src/udev/udev-builtin-hwdb.c
patch
|
blob
|
history
diff --git
a/src/udev/udev-builtin-hwdb.c
b/src/udev/udev-builtin-hwdb.c
index 0746698c46177d82256f4faa2d4d5dd52a7dcf5c..1458795e993bb151d69b0164421aafc725f71081 100644
(file)
--- 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;