Allow holes in executables.
This commit is contained in:
parent
0020ad8ac7
commit
61337d5f7b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user