summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1998-10-04 20:35:16 +0000
committermillert <millert@openbsd.org>1998-10-04 20:35:16 +0000
commit853ab658791a090d89fff97375e4798c0d0e7c4c (patch)
tree680c1b8e3560679c779cda023b41eadd1cd3b4a9
parentDIOCGPDINFO support (diff)
downloadwireguard-openbsd-853ab658791a090d89fff97375e4798c0d0e7c4c.tar.xz
wireguard-openbsd-853ab658791a090d89fff97375e4798c0d0e7c4c.zip
if the 'c' partition lacks a size, give it a reasonable one
-rw-r--r--sys/arch/hp300/hp300/disksubr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hp300/hp300/disksubr.c b/sys/arch/hp300/hp300/disksubr.c
index ff5600426bb..16131108550 100644
--- a/sys/arch/hp300/hp300/disksubr.c
+++ b/sys/arch/hp300/hp300/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.10 1998/10/04 00:54:53 millert Exp $ */
+/* $OpenBSD: disksubr.c,v 1.11 1998/10/04 20:35:16 millert Exp $ */
/* $NetBSD: disksubr.c,v 1.9 1997/04/01 03:12:13 scottr Exp $ */
/*
@@ -85,7 +85,7 @@ readdisklabel(dev, strat, lp, osdep, spoofonly)
lp->d_secpercyl = 1;
lp->d_npartitions = RAW_PART + 1;
if (lp->d_partitions[RAW_PART].p_size == 0)
- lp->d_partitions[RAW_PART].p_size = 0x1fffffff;
+ lp->d_partitions[RAW_PART].p_size = lp->d_secperunit;
lp->d_partitions[RAW_PART].p_offset = 0;
/* don't read the on-disk label if we are in spoofed-only mode */