From: Philip Homburg Date: Mon, 24 Jul 2006 13:07:25 +0000 (+0000) Subject: Allow holes in executables. X-Git-Tag: v3.1.3~234 X-Git-Url: http://zhaoyanbai.com/repos/doxygen.log?a=commitdiff_plain;h=61337d5f7bd0feef48c43d9d5aaf6f09d8f350e7;p=minix.git Allow holes in executables. --- diff --git a/servers/fs/exec.c b/servers/fs/exec.c index 2c6234c75..39755f3d7 100644 --- a/servers/fs/exec.c +++ b/servers/fs/exec.c @@ -574,9 +574,12 @@ phys_bytes seg_bytes; /* how much is to be transferred? */ { b= read_map(rip, o); if (b == NO_BLOCK) - return EIO; /* Executables don't have holes */ - - bp = get_block(rip->i_dev, b, NORMAL); /* get block */ + { + bp = get_block(NO_DEV, NO_BLOCK, NORMAL); /* get a buffer */ + zero_block(bp); + } + else + bp = get_block(rip->i_dev, b, NORMAL); /* get block */ if (o < off) b_off= off-o; else