]> git.ipfire.org Git - pakfire.git/commitdiff
linter: Skip linting any object files
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 15 Feb 2025 12:05:21 +0000 (12:05 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 15 Feb 2025 12:05:21 +0000 (12:05 +0000)
We seem to only have very few of these, but this might be easier than
keeping any kind of whitelist.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/linter-file.c

index c34449788a7fc9f35d66caca5d458937d1081bdd..f993635d007d64e10ac07860665f21302785a75e 100644 (file)
@@ -514,8 +514,8 @@ int pakfire_linter_file_lint(struct pakfire_linter_file* lfile) {
 
        // ELF Checks
        if (lfile->elf) {
-               // Don't run this for start files
-               if (pakfire_file_matches(lfile->file, "/usr/lib*/*crt*.o"))
+               // Don't run this for any object files
+               if (pakfire_file_matches(lfile->file, "**.o"))
                        return 0;
 
                // Check if stripped