summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-05-21 01:44:45 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-05-21 01:44:45 +0200
commit81469dae34a36e6916226fc7f60772452fc7bf0d (patch)
treeecfa1926dd8c6c5aacda21b863b5804587cbcd1b
parentce449f89d6e610dc57b0764e391d12259f625012 (diff)
fix location of database files
-rw-r--r--udev/lib/libudev-device-db-write.c2
-rw-r--r--udev/lib/libudev-device.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/udev/lib/libudev-device-db-write.c b/udev/lib/libudev-device-db-write.c
index d9d97d45a0..a8e66f7884 100644
--- a/udev/lib/libudev-device-db-write.c
+++ b/udev/lib/libudev-device-db-write.c
@@ -27,7 +27,7 @@ static size_t devpath_to_db_path(struct udev *udev, const char *devpath, char *f
s = filename;
l = util_strpcpyl(&s, len, udev_get_dev_path(udev), "/.udev/db/", NULL);
- return util_path_encode(devpath, filename, l);
+ return util_path_encode(devpath, s, l);
}
int udev_device_update_db(struct udev_device *udev_device)
diff --git a/udev/lib/libudev-device.c b/udev/lib/libudev-device.c
index 37b3a3b7a2..ea54badde4 100644
--- a/udev/lib/libudev-device.c
+++ b/udev/lib/libudev-device.c
@@ -68,7 +68,7 @@ static size_t devpath_to_db_path(struct udev *udev, const char *devpath, char *f
s = filename;
l = util_strpcpyl(&s, len, udev_get_dev_path(udev), "/.udev/db/", NULL);
- return util_path_encode(devpath, filename, l);
+ return util_path_encode(devpath, s, l);
}
int udev_device_read_db(struct udev_device *udev_device)