diff options
author | phk <phk@FreeBSD.org> | 1995-02-13 07:40:33 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-02-13 07:40:33 +0000 |
commit | 0a5b8602355114c97d24d95ede58cea8725b1257 (patch) | |
tree | 40cb78e6aaa92dd5808d517b921e13612822a0b0 /sys/kern/imgact_gzip.c | |
parent | 9857deb1958ba279bccc65d8f4a610a927a6bb1c (diff) | |
download | FreeBSD-src-0a5b8602355114c97d24d95ede58cea8725b1257.zip FreeBSD-src-0a5b8602355114c97d24d95ede58cea8725b1257.tar.gz |
Actually access the right first page if the file.
Bruce finally caught this bogon for me, Thank you Bruce !
Due to some part of the VM/buffer/pmap magic doing clustering, this bogon
managed to work better than 99.9% of the time. Amazing.
If You ever again see a weird message from the gzip code, please tell me.
Diffstat (limited to 'sys/kern/imgact_gzip.c')
-rw-r--r-- | sys/kern/imgact_gzip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/imgact_gzip.c b/sys/kern/imgact_gzip.c index 87de995..4d08c49 100644 --- a/sys/kern/imgact_gzip.c +++ b/sys/kern/imgact_gzip.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: imgact_gzip.c,v 1.9 1994/10/22 11:40:27 phk Exp $ + * $Id: imgact_gzip.c,v 1.10 1994/10/22 11:55:16 phk Exp $ * * This module handles execution of a.out files which have been run through * "gzip". This saves diskspace, but wastes cpu-cycles and VM. @@ -291,7 +291,7 @@ NextByte(void *vp) return GZ_EOF; } } - igz->offset += PAGE_SIZE; + igz->offset = igz->idx & ~PAGE_MASK; error = vm_mmap(kernel_map, /* map */ (vm_offset_t *) & igz->inbuf, /* address */ |