[Bug 295428] Installer: root password truncates to 32 characters

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 09 Jul 2026 01:49:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295428

--- Comment #4 from Devin Teske <dteske@FreeBSD.org> ---
Another issue is discovered, in that if you pass a maxletters value of zero (0)
then the behavior is undocumented -- the max becomes fieldlen. This behavior is
not in the bsddialog man-page that I could find.

This behavior would be fine if it were documented somewhere.

The effort was to try and see if there was a way to remove a limit.

Also tried was negative-one (-1) but that returns an error with invalid option.

So it's clear that passwordform must take a limit (which is confusing because
when we took the root password using cdialog we -- to the best of my
recollection -- never had to deal with a password limit).

The very fact that we have to provide a limit is what leads to the sub-par user
experience in this situation and not one, but at least 3 POLA violations
(silently truncated input; malformed truncation when you hit the limit and
backspace; inability to correctly interpret/act-upon meaningful keybindings
such as Ctrl-u)

-- 
You are receiving this mail because:
You are the assignee for the bug.