]> git.ipfire.org Git - pakfire.git/commitdiff
file: Show error when a file has no symbol table
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 11 Mar 2023 13:20:41 +0000 (13:20 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 11 Mar 2023 13:20:41 +0000 (13:20 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/file.c

index a3a89b12b40d05a0df8a87a3c53d6dbf27c74d31..ef54fa5699ee18530619fe55acd52bf3a0d320e8 100644 (file)
@@ -1524,8 +1524,10 @@ static int __pakfire_file_hardening_check_ssp(
        // Walk through all sections
        for (;;) {
                section = elf_nextscn(elf, section);
-               if (!section)
+               if (!section) {
+                       ERROR(file->pakfire, "%s has no symbol table\n", file->path);
                        return 1;
+               }
 
                // Fetch the section header
                gelf_getshdr(section, &section_header);