do not filter non-existent directories if filter is off

feature/tap-sh
Graham Ollis 2016-12-31 13:11:08 -05:00 committed by William Pitcock
parent 866873da15
commit 9c426b6f2c
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ pkgconf_path_add(const char *text, pkgconf_list_t *dirlist, bool filter)
#ifdef PKGCONF_CACHE_INODES #ifdef PKGCONF_CACHE_INODES
struct stat st; struct stat st;
if (stat(text, &st) == -1) if (filter && stat(text, &st) == -1)
return; return;
if (filter && path_list_contains_entry(text, dirlist, &st)) if (filter && path_list_contains_entry(text, dirlist, &st))