summaryrefslogtreecommitdiff
path: root/sbin/fdisk/cmd.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2002-01-24 04:40:04 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2002-01-24 04:40:04 +0000
commitbbb35bfde211e554d09e7ecf9d71b474ee575180 (patch)
treecea7464486a2d397f2ac9f8eb590a3a3559229b1 /sbin/fdisk/cmd.c
parente92ccee3a6b4ba2419f4e26abc373bc52ccc4fff (diff)
allow reinitializing mbr in the ext parts; from Matt Watson <mwatson@apple.com>
Diffstat (limited to 'sbin/fdisk/cmd.c')
-rw-r--r--sbin/fdisk/cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fdisk/cmd.c b/sbin/fdisk/cmd.c
index 0cf4afb57a6..d43209b2224 100644
--- a/sbin/fdisk/cmd.c
+++ b/sbin/fdisk/cmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd.c,v 1.30 2002/01/18 08:38:26 kjell Exp $ */
+/* $OpenBSD: cmd.c,v 1.31 2002/01/24 04:40:03 mickey Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
@@ -57,7 +57,7 @@ Xreinit(cmd, disk, mbr, tt, offset)
/* Copy template MBR */
MBR_make(tt, buf);
- MBR_parse(disk, buf, 0, 0, mbr);
+ MBR_parse(disk, buf, mbr->offset, mbr->reloffset, mbr);
MBR_init(disk, mbr);