1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-28 16:43:09 +00:00

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>
This commit is contained in:
Murray Stokely 2002-01-29 22:35:40 +00:00
parent 137eab1898
commit 7cdcc9fecd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=89968
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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;