forked from ariadne/pkgconf
do not filter non-existent directories if filter is off
parent
866873da15
commit
9c426b6f2c
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue