bsdinstall/partedit: Fix UFS auto partitioning
Fix bsdinstall "Auto (UFS) Guided Disk Setup" and sade(8) "Auto". The problem is a string comparison failure, it arose during the dialog(3)/bsddialog(3) form conversion: * dialog uses only form.text while bsdialog differentiates between form.init and form.value. * dialog always allocates memory for form values while bsddialog only when a button is pressed. Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D35033
This commit is contained in:
parent
2f6362484c
commit
9b4c606b96
@ -1154,6 +1154,12 @@ gpart_create(struct gprovider *pp, const char *default_type,
|
||||
init_allocated = true;
|
||||
goto addpartform;
|
||||
}
|
||||
} else { /* auto partitioning */
|
||||
items[0].value = strdup(items[0].init);
|
||||
items[1].value = strdup(items[1].init);
|
||||
items[2].value = strdup(items[2].init);
|
||||
if (nitems > 3)
|
||||
items[3].value = strdup(items[3].init);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user