summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2006-10-10 03:17:46 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2006-10-10 03:17:46 +0000
commitc2d0836b8e2158302cb1e6a389fe9a561a9e1501 (patch)
treede3368df58051a08e3e3401e51913c527a6528a4 /sys/arch/hppa
parentdc8d0c42a03c25fdf64c58d17fc94f81dd2782d7 (diff)
Don't spoof a Free/NetBSD MBR partition as the 'a' partition in a
disklabel. Fixes 'double spoofing' of these partitions as both 'a' and something in the 'i' to 'p' range. OpenBSD changed its MBR partition type to 'A6' eight years ago. As a backward compatibility measure NetBSD and FreeBSD MBR partitions were still spoofed as 'a' partitions when no OpenBSD partition could be found. This bit of backward compatibility is no longer required. 'we can get rid of it' deraadt@
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r--sys/arch/hppa/hppa/disksubr.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sys/arch/hppa/hppa/disksubr.c b/sys/arch/hppa/hppa/disksubr.c
index 10315e52f85..912c18c733b 100644
--- a/sys/arch/hppa/hppa/disksubr.c
+++ b/sys/arch/hppa/hppa/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.36 2006/10/04 23:58:12 krw Exp $ */
+/* $OpenBSD: disksubr.c,v 1.37 2006/10/10 03:17:45 krw Exp $ */
/*
* Copyright (c) 1999 Michael Shalayeff
@@ -276,16 +276,6 @@ readdoslabel(bp, strat, lp, osdep, partoffp, cylp, spoofonly)
if (letoh32(dp2->dp_size) &&
dp2->dp_typ == DOSPTYP_OPENBSD)
ourpart = i;
- for (dp2=dp, i=0; i < NDOSPART && ourpart == -1;
- i++, dp2++)
- if (letoh32(dp2->dp_size) &&
- dp2->dp_typ == DOSPTYP_FREEBSD)
- ourpart = i;
- for (dp2=dp, i=0; i < NDOSPART && ourpart == -1;
- i++, dp2++)
- if (letoh32(dp2->dp_size) &&
- dp2->dp_typ == DOSPTYP_NETBSD)
- ourpart = i;
if (ourpart == -1)
goto donot;
/*