From: Michael Tremer Date: Fri, 3 Jan 2025 17:31:02 +0000 (+0000) Subject: build: ELF files must always be executable X-Git-Tag: 0.9.30~555 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52cf5b73a0bffc19fd7e4df13ffb62c2c7db1ac4;p=pakfire.git build: ELF files must always be executable Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/build.c b/src/pakfire/build.c index cd4526d05..040554c80 100644 --- a/src/pakfire/build.c +++ b/src/pakfire/build.c @@ -641,6 +641,10 @@ static int pakfire_build_find_elf_requires( char** requires = NULL; int r; + // Files must be executable + if (!pakfire_file_is_executable(file)) + return 0; + // Try to open the ELF file r = pakfire_elf_open_file(&elf, ctx, file); if (r < 0) {