]> git.ipfire.org Git - pakfire.git/commitdiff
filelists: "/" includes everything
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 24 May 2021 14:38:09 +0000 (14:38 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 24 May 2021 14:38:09 +0000 (14:38 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/filelist.c

index 6b568f460517d22cefd34d89fc03160ba664f5e4..421e9a1982e4baf043334994668db6f85609945e 100644 (file)
@@ -311,6 +311,10 @@ static int pakfire_filelist_is_included(const char* path, const char** includes)
        int r;
 
        for (const char** include = includes; *include; include++) {
+               // "/" includes everything
+               if (strcmp(*include, "/") == 0)
+                       return 1;
+
                r = fnmatch(*include, path, 0);
 
                // Found a match