libexec: quiet

. harmless errors in the case of shell scripts

Change-Id: I461776024a21233e291102ca6d05dc7fa767f71a
This commit is contained in:
Ben Gras 2013-02-10 19:52:25 +01:00
parent 5a0585359d
commit 7df45744ad

View file

@ -60,12 +60,10 @@ static int elf_unpack(char *exec_hdr,
{
*hdr = (Elf_Ehdr *) exec_hdr;
if(!elf_sane(*hdr)) {
printf("elf_unpack: elf_sane failed\n");
return ENOEXEC;
}
*phdr = (Elf_Phdr *)(exec_hdr + (*hdr)->e_phoff);
if(!elf_ph_sane(*phdr)) {
printf("elf_unpack: elf_ph_sane failed\n");
return ENOEXEC;
}
#if 0
@ -135,7 +133,6 @@ int libexec_load_elf(struct exec_info *execi)
assert(execi->hdr != NULL);
if((e=elf_unpack(execi->hdr, execi->hdr_len, &hdr, &phdr)) != OK) {
printf("libexec_load_elf: elf_unpack failed\n");
return e;
}