mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-07 13:30:07 -05:00
ucm: fix uc_mgr_scan_master_configs()
Skip the lookup, if the top level filename does not exist. Fixes: https://github.com/alsa-project/alsa-ucm-conf/issues/16 Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
79102bf264
commit
6137d263f3
1 changed files with 3 additions and 0 deletions
|
|
@ -1969,6 +1969,9 @@ int uc_mgr_scan_master_configs(const char **_list[])
|
||||||
|
|
||||||
configuration_filename2(filename, sizeof(filename), 2,
|
configuration_filename2(filename, sizeof(filename), 2,
|
||||||
d_name, d_name, ".conf");
|
d_name, d_name, ".conf");
|
||||||
|
if (eaccess(filename, R_OK))
|
||||||
|
continue;
|
||||||
|
|
||||||
err = uc_mgr_config_load(2, filename, &cfg);
|
err = uc_mgr_config_load(2, filename, &cfg);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
goto __err;
|
goto __err;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue