summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-08-15 19:54:03 +0200
committerKay Sievers <kay@vrfy.org>2013-08-15 19:55:32 +0200
commitcabaa37a602ea787d3b3d1f6ec402de7918a4823 (patch)
tree48576e6028eff1ba50dff0819a3822446bbdbbfd
parent47e737dc13bf4251ae5a2249ec29b34503ed92e1 (diff)
libudev: fix hwdb validation to look for the *new* file
-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 5645a11437..de1cb83188 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;