fix location of database files

This commit is contained in:
Kay Sievers 2009-05-21 01:44:45 +02:00
parent ce449f89d6
commit 81469dae34
2 changed files with 2 additions and 2 deletions

View 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)

View 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)