diff options
author | murray <murray@FreeBSD.org> | 2002-01-29 22:35:40 +0000 |
---|---|---|
committer | murray <murray@FreeBSD.org> | 2002-01-29 22:35:40 +0000 |
commit | 80a5862e4638b3983879692876282ab4ceadd5ae (patch) | |
tree | 5f05f36e361bb0ec723462888995f32b356a6c67 /usr.sbin/sysinstall/label.c | |
parent | f6d55d0aac6caa00661eb68bbbee15a5abff984b (diff) | |
download | FreeBSD-src-80a5862e4638b3983879692876282ab4ceadd5ae.zip FreeBSD-src-80a5862e4638b3983879692876282ab4ceadd5ae.tar.gz |
Fix a signal 11 error that occurs if you try to use the 'T' option on
an existing FreeBSD partition.
Reported by: Brent Cook <busterb@mail.utexas.edu>
Diffstat (limited to 'usr.sbin/sysinstall/label.c')
-rw-r--r-- | usr.sbin/sysinstall/label.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/label.c b/usr.sbin/sysinstall/label.c index a6b71b3..b9752d56 100644 --- a/usr.sbin/sysinstall/label.c +++ b/usr.sbin/sysinstall/label.c @@ -1034,7 +1034,8 @@ diskLabel(Device *dev) break; case 'T': /* Toggle newfs state */ - if (label_chunk_info[here].type == PART_FILESYSTEM) { + if ((label_chunk_info[here].type == PART_FILESYSTEM) && + (label_chunk_info[here].c->private_data)) { PartInfo *pi = ((PartInfo *)label_chunk_info[here].c->private_data); if (!pi->newfs) label_chunk_info[here].c->flags |= CHUNK_NEWFS; |