]> git.ipfire.org Git - pakfire.git/commitdiff
filelist: Ignore root when scanning for files
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 3 Jun 2021 14:27:27 +0000 (14:27 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 3 Jun 2021 14:27:27 +0000 (14:27 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/filelist.c

index 4e6425d08ff2e0ccf8036918eeb306ce9638d5a4..0c7ee0895f5ce9124e043784ac30b633aa374388 100644 (file)
@@ -407,7 +407,7 @@ int pakfire_filelist_scan(PakfireFilelist list, const char* root,
 
                // Compute the relative path
                const char* path = pakfire_path_relpath(root, node->fts_path);
-               if (!path)
+               if (!path || !*path)
                        continue;
 
                // Skip what is not included