Page MenuHomeFreeBSD

bsdinstall: Fix newfs bsddialog menu
ClosedPublic

Authored by emaste on Fri, Nov 7, 10:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 20, 2:00 AM
Unknown Object (File)
Thu, Nov 20, 1:55 AM
Unknown Object (File)
Thu, Nov 20, 1:55 AM
Unknown Object (File)
Thu, Nov 20, 1:50 AM
Unknown Object (File)
Mon, Nov 17, 4:48 PM
Unknown Object (File)
Sun, Nov 16, 7:13 AM
Unknown Object (File)
Sat, Nov 15, 11:28 AM
Unknown Object (File)
Sat, Nov 15, 11:28 AM
Subscribers

Details

Summary
The first 3 members of struct bsddialog_menuitem are:

                   const char *prefix;
                   bool on;
                   unsigned int depth;

The newfs dialog options in bsdinstall's partition tool had on and depth
swapped, so the defaults did not work.

PR: 290857
Fixes: 50e244964e9b ("bsdinstall/partedit: Replace libdialog with libbsddialog")

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste added inline comments.
usr.sbin/bsdinstall/partedit/gpart_ops.c
212

Separately this should probably just be -F 32 without -c 1. I will look at that and post a patch after testing.

Thank you for finding this issue and the fix.

This revision is now accepted and ready to land.Fri, Nov 7, 11:09 PM
This revision was automatically updated to reflect the committed changes.