From 4fe96a8ccc7ae92a08519070082df7dcf66a1088 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 dddb3bf..be07580 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) {