mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
ucm: fix Path condition - substitute Path
Use the appropriate variable for access/eaccess call.
Fixes: https://github.com/alsa-project/alsa-lib/issues/395
Fixes: ef6463a2 ("ucm: fix Path condition - substitute Path and Mode fields")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
ef6463a209
commit
3fd24db22d
1 changed files with 2 additions and 2 deletions
|
|
@ -315,9 +315,9 @@ static int if_eval_path(snd_use_case_mgr_t *uc_mgr, snd_config_t *eval)
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
return err;
|
return err;
|
||||||
#ifdef HAVE_EACCESS
|
#ifdef HAVE_EACCESS
|
||||||
err = eaccess(path, amode);
|
err = eaccess(s, amode);
|
||||||
#else
|
#else
|
||||||
err = access(path, amode);
|
err = access(s, amode);
|
||||||
#endif
|
#endif
|
||||||
free(s);
|
free(s);
|
||||||
return err ? 0 : 1;
|
return err ? 0 : 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue