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:
Jaroslav Kysela 2020-03-17 16:20:52 +01:00
parent 79102bf264
commit 6137d263f3

View file

@ -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;