diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-10-18 10:35:05 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-10-18 10:35:05 +0000 |
commit | 035e821a9286f8b53fc595a4155f108852b2968a (patch) | |
tree | 8f40cb89b21ea1649f455e209a5231b007d46192 /sys/arch/i386 | |
parent | 558f6abeb7d6f078b099609c8d6170f793f35b11 (diff) |
do not create spoofed partition for DOSTYP_OPENBSD
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/i386/disksubr.c | 4 |
1 files changed, 3 insertions, 1 deletions
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)) |