From 9c426b6f2c8fafa53e4962836bd2fdde1c82e8c3 Mon Sep 17 00:00:00 2001 From: Graham Ollis Date: Sat, 31 Dec 2016 13:11:08 -0500 Subject: [PATCH] do not filter non-existent directories if filter is off --- libpkgconf/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpkgconf/path.c b/libpkgconf/path.c index a035431..c2d7093 100644 --- a/libpkgconf/path.c +++ b/libpkgconf/path.c @@ -76,7 +76,7 @@ pkgconf_path_add(const char *text, pkgconf_list_t *dirlist, bool filter) #ifdef PKGCONF_CACHE_INODES struct stat st; - if (stat(text, &st) == -1) + if (filter && stat(text, &st) == -1) return; if (filter && path_list_contains_entry(text, dirlist, &st))