From f5ad57650270310938d1f0c30caf667d836b617a Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Mon, 20 Oct 1997 07:26:41 +0000 Subject: Do not spoof OpenBSD partitions --- sys/arch/alpha/alpha/disksubr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/arch/alpha') diff --git a/sys/arch/alpha/alpha/disksubr.c b/sys/arch/alpha/alpha/disksubr.c index a45bfc49b09..6ec0b3d283e 100644 --- a/sys/arch/alpha/alpha/disksubr.c +++ b/sys/arch/alpha/alpha/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.14 1997/10/02 12:58:08 niklas Exp $ */ +/* $OpenBSD: disksubr.c,v 1.15 1997/10/20 07:26:40 niklas Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -415,6 +415,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 (dp2->dp_size) pp->p_size = dp2->dp_size; if (dp2->dp_start) -- cgit v1.2.3