Allow holes in executables.
This commit is contained in:
parent
0020ad8ac7
commit
61337d5f7b
@ -574,9 +574,12 @@ phys_bytes seg_bytes; /* how much is to be transferred? */
|
|||||||
{
|
{
|
||||||
b= read_map(rip, o);
|
b= read_map(rip, o);
|
||||||
if (b == NO_BLOCK)
|
if (b == NO_BLOCK)
|
||||||
return EIO; /* Executables don't have holes */
|
{
|
||||||
|
bp = get_block(NO_DEV, NO_BLOCK, NORMAL); /* get a buffer */
|
||||||
bp = get_block(rip->i_dev, b, NORMAL); /* get block */
|
zero_block(bp);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
bp = get_block(rip->i_dev, b, NORMAL); /* get block */
|
||||||
if (o < off)
|
if (o < off)
|
||||||
b_off= off-o;
|
b_off= off-o;
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user