Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Jul 2026 01:41:33 +0000
From:      bugzilla-noreply@freebsd.org
To:        sysinstall@FreeBSD.org
Subject:   [Bug 295428] Installer: root password truncates to 32 characters
Message-ID:  <bug-295428-8135-gF7DjoskxA@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-295428-8135@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295428

--- Comment #2 from Devin Teske <dteske@FreeBSD.org> ---
My approach in refactoring the password form dialog is to:

1. Fix detection of cursor position in-relation to maxletters tracking
2. when maxletters is reached (irrespective of --insecure) put up an indicator
that max has been reached

Problem is that we will have to implement the latter (point 2 above) as an
option that is passed-in so that we can maintain i18n capabilities.

Put simply, we shouldn't assume the display is English because we ultimately
want to support making these dialogs i18n-ready.

I propose:

`--limit-label label` that will do these two things:

1. Add height to the window, inserting a blank line between the form box and
the button region
2. When the limit is reached, render the --limit-label label below the form box
3. If backspace is pressed taking the input below maxletters then erase the
--limit-label label

This would allow passing in bsdinstall the option --limit-label "limit reached"
to indicate to the user that additional characters are not registering, wherein
they can then decide to recover by deleting characters and choose a different
input.

ASIDE: yet another problem was just discovered, on the back of the above
comment, it is common for people that know the Ctrl-u keybinding to use it to
wipe-out the input. This keybinding is not adhered to and it creates a system
that cannot be logged-into. Which is to say quite simply, if Ctrl-u is taken as
input, you cannot log into a system that has such a password because pressing
Ctrl-u while typing your password at the login prompt will wipe-out previous
input.

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

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-295428-8135-gF7DjoskxA>