chiark / gitweb /
libudev: fix hwdb validation to look for the *new* file
[elogind.git] / src / libudev / libudev-hwdb.c
index 5645a11437c7d100cd1d177e41ef50d30516d7d1..de1cb831885016b3236d74be66fe4b289afc39b4 100644 (file)
@@ -358,7 +358,7 @@ bool udev_hwdb_validate(struct udev_hwdb *hwdb) {
                 return false;
         if (!hwdb->f)
                 return false;
-        if (fstat(fileno(hwdb->f), &st) < 0)
+        if (stat("/etc/udev/hwdb.bin", &st) < 0)
                 return true;
         if (timespec_load(&hwdb->st.st_mtim) != timespec_load(&st.st_mtim))
                 return true;