From a6d6b88d14d12c6fc79c88a0fa8f7136eaf2a677 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 8 Sep 2017 18:27:04 -0500 Subject: [PATCH] libpkgconf: path: fix logic error in path relocation case when matching against a list (closes #129) --- libpkgconf/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpkgconf/path.c b/libpkgconf/path.c index 59e003e..57faaed 100644 --- a/libpkgconf/path.c +++ b/libpkgconf/path.c @@ -205,7 +205,7 @@ pkgconf_path_match_list(const char *path, const pkgconf_list_t *dirlist) pkgconf_strlcpy(relocated, path, sizeof relocated); if (pkgconf_path_relocate(relocated, sizeof relocated)) - cpath = path; + cpath = relocated; PKGCONF_FOREACH_LIST_ENTRY(dirlist->head, n) {