libexec exec fix
. restores executing shell scripts without explicit interpreter
This commit is contained in:
parent
0c1b8ba3c3
commit
d36ce68582
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue