On Fri, Jul 18, 2025 at 16:03:50 +0200, Ellie wrote:

> On 7/18/25 2:51 PM, Valery Ushakov wrote:
> 
> > TIL that NetBSD has getpassfd(3) that supports GETPASS_ECHO_STAR:
> >
> >    https://man.netbsd.org/getpassfd.3
> >    https://github.com/NetBSD/src/blob/trunk/lib/libc/gen/getpass.c
>
> I wonder, does NetBSD also have a way of how would a user of "su" invoke it,
> assuming that "su" in NetBSD learned how to make use of that?

No, su(1) doesn't use it.  It seems nothing in base currently uses
GETPASS_ECHO_STAR - printing asterisks might be considered a security
problem b/c it reveals the length of the password.

My point is that the code is already out there, so if you need it, you
can integrate it in a way convenient for your specific use case and
avoid all the bikeshedding :).

-uwe
_______________________________________________
busybox mailing list
[email protected]
https://lists.busybox.net/mailman/listinfo/busybox

Reply via email to