From 61337d5f7bd0feef48c43d9d5aaf6f09d8f350e7 Mon Sep 17 00:00:00 2001 From: Philip Homburg Date: Mon, 24 Jul 2006 13:07:25 +0000 Subject: [PATCH] Allow holes in executables. --- servers/fs/exec.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 -- 2.44.0