Skip to content

Commit

Permalink
ucm: fix Path condition - substitute Path
Browse files Browse the repository at this point in the history
Use the appropriate variable for access/eaccess call.

Fixes: #395
Fixes: ef6463a ("ucm: fix Path condition - substitute Path and Mode fields")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
  • Loading branch information
perexg committed Apr 24, 2024
1 parent ef6463a commit 3fd24db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ucm/ucm_cond.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,9 @@ static int if_eval_path(snd_use_case_mgr_t *uc_mgr, snd_config_t *eval)
if (err < 0)
return err;
#ifdef HAVE_EACCESS
err = eaccess(path, amode);
err = eaccess(s, amode);
#else
err = access(path, amode);
err = access(s, amode);
#endif
free(s);
return err ? 0 : 1;
Expand Down

0 comments on commit 3fd24db

Please sign in to comment.