aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-05-09 20:26:17 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-05-09 20:26:17 +0000
commit8970f1a474753c218a2d6ce866f399e9b00b7c69 (patch)
tree8eaabfc92f51d759e40d97a0ff4580634aa74d06 /sbin
parentb1bf1c3a98dbd037de2a71b928c6225591fd67f2 (diff)
downloadsrc-8970f1a474753c218a2d6ce866f399e9b00b7c69.tar.gz
src-8970f1a474753c218a2d6ce866f399e9b00b7c69.zip
Before reading an ascii label, initialize with defaults so that
getasciipartspec() has a sectorisize in case it needs one. Approved by: re/jhb
Notes
Notes: svn path=/head/; revision=114862
Diffstat (limited to 'sbin')
-rw-r--r--sbin/bsdlabel/bsdlabel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/bsdlabel/bsdlabel.c b/sbin/bsdlabel/bsdlabel.c
index 9597fe572d49..e622d1f5b218 100644
--- a/sbin/bsdlabel/bsdlabel.c
+++ b/sbin/bsdlabel/bsdlabel.c
@@ -656,6 +656,7 @@ getasciilabel(FILE *f, struct disklabel *lp)
int lineno = 0, errors = 0;
int i;
+ makelabel("auto", lp);
bzero(&part_set, sizeof(part_set));
bzero(&part_size_type, sizeof(part_size_type));
bzero(&part_offset_type, sizeof(part_offset_type));