[systemd-commits] src/udev

Kay Sievers kay at kemper.freedesktop.org
Thu Oct 25 13:09:08 PDT 2012


 src/udev/udev-builtin-hwdb.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 7ee40fc3e93fa97be28f129dd457de74c58e9de4
Author: Kay Sievers <kay at vrfy.org>
Date:   Thu Oct 25 22:08:33 2012 +0200

    udev: hwdb validate() return when the database is not opened

diff --git a/src/udev/udev-builtin-hwdb.c b/src/udev/udev-builtin-hwdb.c
index 4c3d5ae..0746698 100644
--- a/src/udev/udev-builtin-hwdb.c
+++ b/src/udev/udev-builtin-hwdb.c
@@ -357,6 +357,8 @@ static bool builtin_hwdb_validate(struct udev *udev)
 {
         struct stat st;
 
+        if (!trie.f)
+                return true;
         if (fstat(fileno(trie.f), &st) < 0)
                 return true;
         if (trie.file_time_usec != ts_usec(&st.st_mtim))



More information about the systemd-commits mailing list