From: Kay Sievers Date: Wed, 20 May 2009 23:44:45 +0000 (+0200) Subject: fix location of database files X-Git-Tag: 174~1033 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81469dae34a36e6916226fc7f60772452fc7bf0d;p=systemd fix location of database files --- diff --git a/udev/lib/libudev-device-db-write.c b/udev/lib/libudev-device-db-write.c index d9d97d45..a8e66f78 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 37b3a3b7..ea54badd 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)