]> git.ipfire.org Git - pakfire.git/commitdiff
file: Do not fail if we did not find a dynamic section
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 26 Sep 2023 13:38:59 +0000 (13:38 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 26 Sep 2023 17:00:55 +0000 (17:00 +0000)
Some files might not have these. That should not be an error, because
those files will fail their checks later on.

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

index 80b0eee4eac1d4ab33587a6deec2c556c13f3190..dbdff2c4d1285a56e4f3597f0965b79375e60f9b 100644 (file)
@@ -1975,8 +1975,8 @@ static int pakfire_file_elf_dyn_walk(struct pakfire_file* file, Elf* elf,
        // Find the dynamic linking information
        r = pakfire_file_get_elf_section(file, elf, SHT_DYNAMIC, &dynamic, &shdr, &elf_data);
        if (r) {
-               ERROR(file->pakfire, "%s does not have a dynamic section\n", pakfire_file_get_path(file));
-               return 1;
+               DEBUG(file->pakfire, "%s does not have a dynamic section\n", pakfire_file_get_path(file));
+               return 0;
        }
 
        // Walk through all entries...