commit:     8b52e1dd0a7ef159d6e7dc69f7eebca1ab7a25c7
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 20 14:45:35 2025 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Wed Aug 20 14:45:35 2025 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=8b52e1dd

libq/tree: drop invalid check in tree_filter_pkg

tree_filter_pkg is used for many trees including VDBs, in which the
members are directories, so don't require entry types to be of file.

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 libq/tree.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/libq/tree.c b/libq/tree.c
index 963785b..fffbf27 100644
--- a/libq/tree.c
+++ b/libq/tree.c
@@ -405,12 +405,6 @@ tree_filter_pkg(const struct dirent *de)
        int i;
        bool founddash = false;
 
-#ifdef DT_UNKNOWN
-       /* pkg must be a file */
-       if (de->d_type != DT_REG)
-               return 0;
-#endif
-
        /* PMS 3.1.2 */
        for (i = 0; de->d_name[i] != '\0'; i++) {
                switch (de->d_name[i]) {

Reply via email to