mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
fix location of database files
This commit is contained in:
parent
ce449f89d6
commit
81469dae34
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user