summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-05-08 00:05:51 +0000
committerderaadt <deraadt@openbsd.org>1997-05-08 00:05:51 +0000
commitde32d2a4cf174a8483bccd0a2b09de92a31a1d60 (patch)
treecf3c86e36c1e3e2d06b605ef449aaa858c4347b2
parentonly detect first 166/165 as valid (diff)
downloadwireguard-openbsd-de32d2a4cf174a8483bccd0a2b09de92a31a1d60.tar.xz
wireguard-openbsd-de32d2a4cf174a8483bccd0a2b09de92a31a1d60.zip
wandering fix from provos
-rw-r--r--sys/arch/i386/i386/disksubr.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/arch/i386/i386/disksubr.c b/sys/arch/i386/i386/disksubr.c
index 167816c6d2f..04195fc0ffc 100644
--- a/sys/arch/i386/i386/disksubr.c
+++ b/sys/arch/i386/i386/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.23 1997/05/08 00:04:06 deraadt Exp $ */
+/* $OpenBSD: disksubr.c,v 1.24 1997/05/08 00:05:51 deraadt Exp $ */
/* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */
/*
@@ -175,11 +175,9 @@ readdisklabel(dev, strat, lp, osdep)
donot:
/*
* In case the disklabel read below fails, we want to
- * provide a fake label in which m/n/o/p are MBR
- * partitions 0/1/2/3
+ * provide a fake label in i-p.
*/
- for (dp2=dp, i=0; i < NDOSPART && !wander && n < 8;
- i++, dp2++) {
+ for (dp2=dp, i=0; i < NDOSPART && n < 8; i++, dp2++) {
struct partition *pp = &lp->d_partitions[8+n];
if (dp2->dp_size)