From: Michael Tremer Date: Tue, 26 Sep 2023 13:38:59 +0000 (+0000) Subject: file: Do not fail if we did not find a dynamic section X-Git-Tag: 0.9.30~1635 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a17d0a4bbf6dd934ee964482e0b09027a62c95ea;p=pakfire.git file: Do not fail if we did not find a dynamic section 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 --- diff --git a/src/libpakfire/file.c b/src/libpakfire/file.c index 80b0eee4e..dbdff2c4d 100644 --- a/src/libpakfire/file.c +++ b/src/libpakfire/file.c @@ -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...