Re: [dev][ubase] passwd runtime error on musl

From: Markus Wichmann <nullplan_AT_gmx.net>
Date: Sat, 23 Mar 2024 04:21:36 +0100

Am Thu, Mar 21, 2024 at 06:01:25PM -0300 schrieb Brian Mayer:
> Hello.
>
> I compiled ubase using GCC and musl, but using passwd gives me an error message:
>
> $ passwd root
> passwd: getpass: No such device or address
>
> Any ideas?
>
> Thanks
>

Looking at the getpass() source, it looks like open("/dev/tty") fails.
You can verify this by running passwd in strace (although you may have
to run both inside sudo, since debuggers disable setuid).

Ciao,
Markus
Received on Sat Mar 23 2024 - 04:21:36 CET

This archive was generated by hypermail 2.3.0 : Sat Mar 23 2024 - 04:24:08 CET