diff options
| author | martin <martin@NetBSD.org> | 2019-06-20 10:56:38 +0000 |
|---|---|---|
| committer | martin <martin@NetBSD.org> | 2019-06-20 10:56:38 +0000 |
| commit | 269cbb0bcba8acc3370c84f66d207629eb2eff59 (patch) | |
| tree | 83adf025792203acd58f39bd92cbde3635afd2be /sbin | |
| parent | 5a7ab70c5dc492ed960c2b0c05db72c68db96266 (diff) | |
When biosboot is used on an existing wedge and we are switching to
the gpt of the parent device, do not pass the size of the wedge to
gpt_open, it certainly is smaller than the whole device.
Fixes bin/54312.
Diffstat (limited to 'sbin')
| -rw-r--r-- | sbin/gpt/biosboot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/gpt/biosboot.c b/sbin/gpt/biosboot.c index b50a6abb673..bccf45d3415 100644 --- a/sbin/gpt/biosboot.c +++ b/sbin/gpt/biosboot.c @@ -1,4 +1,4 @@ -/* $NetBSD: biosboot.c,v 1.31 2019/04/04 13:55:40 martin Exp $ */ +/* $NetBSD: biosboot.c,v 1.32 2019/06/20 10:56:38 martin Exp $ */ /* * Copyright (c) 2009 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ #include <sys/cdefs.h> #ifdef __RCSID -__RCSID("$NetBSD: biosboot.c,v 1.31 2019/04/04 13:55:40 martin Exp $"); +__RCSID("$NetBSD: biosboot.c,v 1.32 2019/06/20 10:56:38 martin Exp $"); #endif #include <sys/stat.h> @@ -312,7 +312,7 @@ cmd_biosboot(gpt_t gpt, int argc, char *argv[]) start = dkw.dkw_offset; size = dkw.dkw_size; ngpt = gpt_open(dkw.dkw_parent, gpt->flags, gpt->verbose, - gpt->mediasz, gpt->secsz, gpt->timestamp); + 0, 0, 0); if (ngpt == NULL) goto cleanup; } |
