0014-Remove-getpass-definition.patch (856B)
1 From e76fda424564544bc8298fb5be7cda966451497d Mon Sep 17 00:00:00 2001 2 From: Michael Forney <mforney@mforney.org> 3 Date: Sun, 26 Feb 2017 17:12:56 -0800 4 Subject: [PATCH] Remove getpass definition 5 6 It is a legacy function and musl already provides an implementation. 7 --- 8 lib/libc/gen/readpassphrase.c | 12 ++---------- 9 1 file changed, 2 insertions(+), 10 deletions(-) 10 11 diff --git a/lib/libc/gen/readpassphrase.c b/lib/libc/gen/readpassphrase.c 12 index a50eaf003..57c6dc527 100644 13 --- a/lib/libc/gen/readpassphrase.c 14 +++ b/lib/libc/gen/readpassphrase.c 15 @@ -183,16 +183,8 @@ restart: 16 } 17 DEF_WEAK(readpassphrase); 18 19 -char * 20 -getpass(const char *prompt) 21 -{ 22 - static char buf[_PASSWORD_LEN + 1]; 23 - 24 - return(readpassphrase(prompt, buf, sizeof(buf), RPP_ECHO_OFF)); 25 -} 26 - 27 -static void handler(int s) 28 +static void 29 +handler(int s) 30 { 31 - 32 signo[s] = 1; 33 } 34 -- 35 2.12.2 36