From d36ce685823b258e336d4523432e050bd3b37dce Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Sat, 29 Dec 2012 00:55:49 +0000 Subject: [PATCH] libexec exec fix . restores executing shell scripts without explicit interpreter --- lib/libexec/exec_elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libexec/exec_elf.c b/lib/libexec/exec_elf.c index ab451a980..e149d818a 100644 --- a/lib/libexec/exec_elf.c +++ b/lib/libexec/exec_elf.c @@ -103,7 +103,7 @@ int elf_has_interpreter(char *exec_hdr, /* executable header */ Elf_Phdr *phdr = NULL; int e, i; - if((e=elf_unpack(exec_hdr, hdr_len, &hdr, &phdr)) != OK) return e; + if((e=elf_unpack(exec_hdr, hdr_len, &hdr, &phdr)) != OK) return 0; for (i = 0; i < hdr->e_phnum; i++) { switch (phdr[i].p_type) { -- 2.11.4.GIT