]> git.ipfire.org Git - pakfire.git/commitdiff
filelist: Fix check when skipping directories in post order
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 3 Jun 2021 14:45:25 +0000 (14:45 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 3 Jun 2021 14:45:25 +0000 (14:45 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/filelist.c

index 0c7ee0895f5ce9124e043784ac30b633aa374388..3e9507ce836947882e11e28532bb298bc82627a5 100644 (file)
@@ -402,7 +402,7 @@ int pakfire_filelist_scan(PakfireFilelist list, const char* root,
        FTSENT* node;
        while ((node = fts_read(tree))) {
                // Ignore any directories in post order
-               if (node->fts_info & FTS_DP)
+               if (node->fts_info == FTS_DP)
                        continue;
 
                // Compute the relative path