summaryrefslogtreecommitdiff
path: root/sys/arch/alpha
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1997-10-20 07:26:41 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1997-10-20 07:26:41 +0000
commitf5ad57650270310938d1f0c30caf667d836b617a (patch)
tree527b25e9333060d7cf4f82496dec204d4d7c64d2 /sys/arch/alpha
parentfd3e27ce29bd081ebf5e967a0bc9806f6ddaee64 (diff)
Do not spoof OpenBSD partitions
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r--sys/arch/alpha/alpha/disksubr.c4
1 files changed, 3 insertions, 1 deletions
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)