diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-04-07 11:21:26 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-04-07 11:21:26 +0000 |
commit | ed4b5fb807fdd5a7e218f297becb2c93d7afc66b (patch) | |
tree | ad4e5e8ad6dbacd05669efeb4efa3e3f2beb99e4 /sys/arch/mvme68k | |
parent | afa1402e05f3d9301ccf548dfc59145241c6431b (diff) |
add cd9660 spoofing and repair partition offset/block offset stuff
Diffstat (limited to 'sys/arch/mvme68k')
-rw-r--r-- | sys/arch/mvme68k/mvme68k/disksubr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/mvme68k/mvme68k/disksubr.c b/sys/arch/mvme68k/mvme68k/disksubr.c index 6d8f6accb10..9b8e937a0ba 100644 --- a/sys/arch/mvme68k/mvme68k/disksubr.c +++ b/sys/arch/mvme68k/mvme68k/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.12 1997/04/06 06:13:03 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.13 1997/04/07 11:21:25 deraadt Exp $ */ /* * Copyright (c) 1995 Dale Rahn. @@ -309,9 +309,9 @@ bounds_check_with_label(bp, lp, wlabel) /* overwriting disk label ? */ /* XXX should also protect bootstrap in first 8K */ - if (bp->b_blkno + p->p_offset <= labelsect && + if (bp->b_blkno + blockpersec(p->p_offset, lp) <= labelsect && #if LABELSECTOR != 0 - bp->b_blkno + p->p_offset + sz > labelsect && + bp->b_blkno + blockpersec(p->p_offset, lp) + sz > labelsect && #endif (bp->b_flags & B_READ) == 0 && wlabel == 0) { bp->b_error = EROFS; |