OSDN Git Service
(root)
/
android-x86
/
external-alsa-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f33e596
)
ucm: allow to specify the toplevel directory using '/' as first character in File...
author
Jaroslav Kysela
<perex@perex.cz>
Mon, 25 May 2020 16:32:43 +0000
(18:32 +0200)
committer
Jaroslav Kysela
<perex@perex.cz>
Mon, 25 May 2020 17:20:53 +0000
(19:20 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/ucm/parser.c
patch
|
blob
|
history
diff --git
a/src/ucm/parser.c
b/src/ucm/parser.c
index
94b0d37
..
44576f1
100644
(file)
--- a/
src/ucm/parser.c
+++ b/
src/ucm/parser.c
@@
-134,7
+134,8
@@
int uc_mgr_config_load_file(snd_use_case_mgr_t *uc_mgr,
int err;
configuration_filename(uc_mgr, filename, sizeof(filename),
- uc_mgr->conf_dir_name, file, "");
+ file[0] == '/' ? "" : uc_mgr->conf_dir_name,
+ file, "");
err = uc_mgr_config_load(uc_mgr->conf_format, filename, cfg);
if (err < 0) {
uc_error("error: failed to open file %s : %d", filename, -errno);