diff options
author | Kay Sievers <kay@vrfy.org> | 2012-10-25 22:22:29 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2012-10-25 22:22:29 +0200 |
commit | 3b0a5f2023cee149d2713327c04fc8103136bd91 (patch) | |
tree | d412f519bcd5aa23dfe5e34c8db4aba7783aa961 /src/udev/udev-builtin-hwdb.c | |
parent | f17491e27d5a4258516249a0369b95a0e1544ab8 (diff) | |
download | systemd-3b0a5f2023cee149d2713327c04fc8103136bd91.tar.gz systemd-3b0a5f2023cee149d2713327c04fc8103136bd91.tar.bz2 systemd-3b0a5f2023cee149d2713327c04fc8103136bd91.zip |
udev: hwdb - exit if no database is available
Diffstat (limited to 'src/udev/udev-builtin-hwdb.c')
-rw-r--r-- | src/udev/udev-builtin-hwdb.c | 3 |
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; |