chiark / gitweb /
fix location of database files
authorKay Sievers <kay.sievers@vrfy.org>
Wed, 20 May 2009 23:44:45 +0000 (01:44 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Wed, 20 May 2009 23:44:45 +0000 (01:44 +0200)
udev/lib/libudev-device-db-write.c
udev/lib/libudev-device.c

index d9d97d4..a8e66f7 100644 (file)
@@ -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)
index 37b3a3b..ea54bad 100644 (file)
@@ -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)