From 7df45744ad40082fff93c078433f7507a458e80d Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Sun, 10 Feb 2013 19:52:25 +0100 Subject: [PATCH] libexec: quiet . harmless errors in the case of shell scripts Change-Id: I461776024a21233e291102ca6d05dc7fa767f71a --- lib/libexec/exec_elf.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/libexec/exec_elf.c b/lib/libexec/exec_elf.c index 4645ec638..625b3f087 100644 --- a/lib/libexec/exec_elf.c +++ b/lib/libexec/exec_elf.c @@ -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; } -- 2.11.4.GIT