From: Ben Gras Date: Sat, 29 Dec 2012 00:55:49 +0000 (+0000) Subject: libexec exec fix X-Git-Tag: v3.2.1~147 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/index.html?a=commitdiff_plain;h=d36ce685823b258e336d4523432e050bd3b37dce;p=minix.git libexec exec fix . restores executing shell scripts without explicit interpreter --- 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) {