diff options
author | phk <phk@FreeBSD.org> | 2003-05-09 20:26:17 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-05-09 20:26:17 +0000 |
commit | c4e628afb84fa52b1f360852b3d3d59baf020b48 (patch) | |
tree | 8eaabfc92f51d759e40d97a0ff4580634aa74d06 /sbin | |
parent | 9efb8e111eeacb32cd051d841afeceb0cd63ac09 (diff) | |
download | FreeBSD-src-c4e628afb84fa52b1f360852b3d3d59baf020b48.zip FreeBSD-src-c4e628afb84fa52b1f360852b3d3d59baf020b48.tar.gz |
Before reading an ascii label, initialize with defaults so that
getasciipartspec() has a sectorisize in case it needs one.
Approved by: re/jhb
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/bsdlabel/bsdlabel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/bsdlabel/bsdlabel.c b/sbin/bsdlabel/bsdlabel.c index 9597fe5..e622d1f 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)); |