summaryrefslogtreecommitdiff
path: root/sbin/fdisk/cmd.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2000-01-08 04:51:17 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2000-01-08 04:51:17 +0000
commit135167ec385829214912ab8141857391df6e5ce3 (patch)
tree485289ef3fc3054b58bb64e6c03f03c235be268a /sbin/fdisk/cmd.c
parent2016a99ce5ca99a6be308b191605c6f6535b5d74 (diff)
support LBA-mapped extended partitions too; sigh@kuzirabekon.econ.nagasaki-u.ac.jp
Diffstat (limited to 'sbin/fdisk/cmd.c')
-rw-r--r--sbin/fdisk/cmd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/fdisk/cmd.c b/sbin/fdisk/cmd.c
index 3a883b60c4f..3f0229acb91 100644
--- a/sbin/fdisk/cmd.c
+++ b/sbin/fdisk/cmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd.c,v 1.22 1999/08/21 22:49:25 niklas Exp $ */
+/* $OpenBSD: cmd.c,v 1.23 2000/01/08 04:51:16 deraadt Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
@@ -169,6 +169,8 @@ Xedit(cmd, disk, mbr, tt, offset)
EDIT("BIOS Ending sector", ASK_DEC, pp->esect, 1, maxsect, NULL);
/* Fix up off/size values */
PRT_fix_BN(disk, pp);
+ /* Fix up CHS values for LBA */
+ PRT_fix_CHS(disk, pp);
} else {
u_int m;