Allow holes in executables.

This commit is contained in:
Philip Homburg 2006-07-24 13:07:25 +00:00
parent 0020ad8ac7
commit 61337d5f7b

View File

@ -574,8 +574,11 @@ 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(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;