From 035e821a9286f8b53fc595a4155f108852b2968a Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 18 Oct 1997 10:35:05 +0000 Subject: do not create spoofed partition for DOSTYP_OPENBSD --- sys/arch/i386/i386/disksubr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/arch/i386') diff --git a/sys/arch/i386/i386/disksubr.c b/sys/arch/i386/i386/disksubr.c index 239e60cc3a0..7c9a8ae8bc6 100644 --- a/sys/arch/i386/i386/disksubr.c +++ b/sys/arch/i386/i386/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.27 1997/10/02 00:50:51 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.28 1997/10/18 10:35:00 deraadt Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -180,6 +180,8 @@ donot: for (dp2=dp, i=0; i < NDOSPART && n < 8; i++, dp2++) { struct partition *pp = &lp->d_partitions[8+n]; + if (dp2->dp_typ == DOSPTYP_OPENBSD) + continue; if (get_le(&dp2->dp_size) > lp->d_secperunit) continue; if (get_le(&dp2->dp_size)) -- cgit v1.2.3