doas

https://man.openbsd.org/doas.1
git clone anongit@rnpnr.xyz:doas.git
Log | Files | Refs | Feed

Commit: cad14b559fa2439f943f0a616008d29a4168012a
Parent: 1340c787af495bada5f91ec17dfcf14afb2c583d
Author: Michael Forney
Date:   Sun, 26 Feb 2017 17:12:56 -0800

Remove getpass definition

It is a legacy function and musl already provides an implementation.

Diffstat:
Mcompat/readpassphrase.c | 12++----------
1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/compat/readpassphrase.c b/compat/readpassphrase.c @@ -183,16 +183,8 @@ restart: } DEF_WEAK(readpassphrase); -char * -getpass(const char *prompt) -{ - static char buf[_PASSWORD_LEN + 1]; - - return(readpassphrase(prompt, buf, sizeof(buf), RPP_ECHO_OFF)); -} - -static void handler(int s) +static void +handler(int s) { - signo[s] = 1; }