summaryrefslogtreecommitdiff
path: root/libudev/libudev-device.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-03-23 02:31:09 +0100
committerKay Sievers <kay.sievers@vrfy.org>2011-03-23 02:31:09 +0100
commit4ec9c3e79771aa95586390cecff4218cc8938160 (patch)
treee26e6bd8125ebcefbdf9674739df7573d17a040a /libudev/libudev-device.c
parent3c6ee190277f9d4bf39269fdb167f9c430633c9b (diff)
use /run/udev/ if possible and fall back to /dev/.udev/
Diffstat (limited to 'libudev/libudev-device.c')
-rw-r--r--libudev/libudev-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libudev/libudev-device.c b/libudev/libudev-device.c
index dd0224ae4b..ccd4a70677 100644
--- a/libudev/libudev-device.c
+++ b/libudev/libudev-device.c
@@ -254,7 +254,7 @@ int udev_device_read_db(struct udev_device *udev_device, const char *dbfile)
id = udev_device_get_id_filename(udev_device);
if (id == NULL)
return -1;
- util_strscpyl(filename, sizeof(filename), udev_get_dev_path(udev_device->udev), "/.run/udev/db3/", id, NULL);
+ util_strscpyl(filename, sizeof(filename), udev_get_run_path(udev_device->udev), "/data/", id, NULL);
dbfile = filename;
}