summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-08-15 19:54:03 +0200
committerAnthony G. Basile <blueness@gentoo.org>2013-09-10 05:51:09 -0400
commit5f55cd9d5739c10785490536ae662f96e4dcefc7 (patch)
treeace0aed48a994dedace02b0877e7032f64dbc647 /src
parent4354ea9e52d61e90ef9af77c6c9507d64a4abf3c (diff)
libudev: fix hwdb validation to look for the *new* file
Diffstat (limited to 'src')
-rw-r--r--src/libudev/libudev-hwdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libudev/libudev-hwdb.c b/src/libudev/libudev-hwdb.c
index 5886ed333c..335f5b775a 100644
--- a/src/libudev/libudev-hwdb.c
+++ b/src/libudev/libudev-hwdb.c
@@ -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;