From: Thomas Veerman Date: Tue, 12 Apr 2011 13:09:19 +0000 (+0000) Subject: Do not print an error message when a binary is corrupt X-Git-Tag: v3.2.0~580 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/static/host.html?a=commitdiff_plain;h=f0740680cd5909e18fcc0422493361005eb17fd7;p=minix.git Do not print an error message when a binary is corrupt --- diff --git a/servers/vfs/exec.c b/servers/vfs/exec.c index 7a0a04f86..09ba60235 100644 --- a/servers/vfs/exec.c +++ b/servers/vfs/exec.c @@ -244,12 +244,7 @@ static int load_aout(struct exec_info *execi) off += text_bytes; if (r == OK) r = read_seg(vp, off, proc_e, D, 0, data_bytes); - if (r != OK) { - printf("VFS: load_aout: read_seg failed: %d\n", r); - return (r); - } - - return(OK); + return (r); } static int load_elf(struct exec_info *execi) @@ -301,12 +296,7 @@ static int load_elf(struct exec_info *execi) if (r == OK) r = read_seg(vp, data_offset, proc_e, D, data_vaddr, data_filebytes); - if (r != OK) { - printf("VFS: load_elf: read_seg failed: %d\n", r); - return (r); - } - - return(OK); + return(r); } /*===========================================================================*