mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-11-23 23:10:57 +07:00
fixup! Dynamically get the udevadm hwdb files with a path variable
This commit is contained in:
parent
060dc0ffaf
commit
92ab29e3d5
@ -688,14 +688,13 @@ static int adm_hwdb(struct udev *udev, int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
trie->nodes_count++;
|
trie->nodes_count++;
|
||||||
|
|
||||||
char *conf_file_path = list_conf_file_path ();
|
_cleanup_free_ char *conf_file_path = list_conf_file_path ();
|
||||||
if (conf_file_path == NULL) {
|
if (conf_file_path == NULL) {
|
||||||
rc = EXIT_FAILURE;
|
rc = EXIT_FAILURE;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
err = conf_files_list_strv_path(&files, ".hwdb", root,
|
err = conf_files_list_strv_path(&files, ".hwdb", root,
|
||||||
conf_file_path);
|
conf_file_path);
|
||||||
free (conf_file_path);
|
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
log_error_errno(err, "failed to enumerate hwdb files: %m");
|
log_error_errno(err, "failed to enumerate hwdb files: %m");
|
||||||
rc = EXIT_FAILURE;
|
rc = EXIT_FAILURE;
|
||||||
|
Loading…
Reference in New Issue
Block a user