From: Jaroslav Kysela Date: Tue, 17 Mar 2020 15:20:52 +0000 (+0100) Subject: ucm: fix uc_mgr_scan_master_configs() X-Git-Tag: v1.2.3~86 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=6137d263f3805c72781ea74b813b0e3754f5fc34;p=alsa-lib.git 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 --- diff --git a/src/ucm/parser.c b/src/ucm/parser.c index 8d6eea31..0001e595 100644 --- a/src/ucm/parser.c +++ b/src/ucm/parser.c @@ -1969,6 +1969,9 @@ int uc_mgr_scan_master_configs(const char **_list[]) configuration_filename2(filename, sizeof(filename), 2, d_name, d_name, ".conf"); + if (eaccess(filename, R_OK)) + continue; + err = uc_mgr_config_load(2, filename, &cfg); if (err < 0) goto __err;