chiark / gitweb /
fix location of database files
[elogind.git] / udev / lib / libudev-device-db-write.c
index d9d97d45a091a5c43e672c1da3517ced13c5249d..a8e66f7884bc8cd5cff16cd94a3521e069a34f52 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)