mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04: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:
parent
137eab1898
commit
7cdcc9fecd
2 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue