Blame 0034-libudev-fix-hwdb-validation-to-look-for-the-new-file.patch
|
Harald Hoyer |
fe20ad |
From e122454310eeee15bad6974f5315ff0cb3be5ab6 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
fe20ad |
From: Kay Sievers <kay@vrfy.org>
|
|
Harald Hoyer |
fe20ad |
Date: Thu, 15 Aug 2013 19:54:03 +0200
|
|
Harald Hoyer |
fe20ad |
Subject: [PATCH] libudev: fix hwdb validation to look for the *new* file
|
|
Harald Hoyer |
fe20ad |
|
|
Harald Hoyer |
fe20ad |
---
|
|
Harald Hoyer |
fe20ad |
src/libudev/libudev-hwdb.c | 2 +-
|
|
Harald Hoyer |
fe20ad |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Harald Hoyer |
fe20ad |
|
|
Harald Hoyer |
fe20ad |
diff --git a/src/libudev/libudev-hwdb.c b/src/libudev/libudev-hwdb.c
|
|
Harald Hoyer |
fe20ad |
index 5645a11..de1cb83 100644
|
|
Harald Hoyer |
fe20ad |
--- a/src/libudev/libudev-hwdb.c
|
|
Harald Hoyer |
fe20ad |
+++ b/src/libudev/libudev-hwdb.c
|
|
Harald Hoyer |
fe20ad |
@@ -358,7 +358,7 @@ bool udev_hwdb_validate(struct udev_hwdb *hwdb) {
|
|
Harald Hoyer |
fe20ad |
return false;
|
|
Harald Hoyer |
fe20ad |
if (!hwdb->f)
|
|
Harald Hoyer |
fe20ad |
return false;
|
|
Harald Hoyer |
fe20ad |
- if (fstat(fileno(hwdb->f), &st) < 0)
|
|
Harald Hoyer |
fe20ad |
+ if (stat("/etc/udev/hwdb.bin", &st) < 0)
|
|
Harald Hoyer |
fe20ad |
return true;
|
|
Harald Hoyer |
fe20ad |
if (timespec_load(&hwdb->st.st_mtim) != timespec_load(&st.st_mtim))
|
|
Harald Hoyer |
fe20ad |
return true;
|