libudev: fix hwdb validation to look for the *new* file

This commit is contained in:
Kay Sievers
2013-10-29 11:14:43 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent 945624129b
commit a63ba5f1c5
+1 -1
View File
@@ -354,7 +354,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;