master hovercats/oakiss / pkg / openbsd / patch / 0013-Remove-getpass-definition.patch
 1From c5f80115a04b3714b73e1f4dc1359b8e51ae8aa0 Mon Sep 17 00:00:00 2001
 2From: Michael Forney <mforney@mforney.org>
 3Date: Sun, 26 Feb 2017 17:12:56 -0800
 4Subject: [PATCH] Remove getpass definition
 5
 6It 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
11diff --git a/lib/libc/gen/readpassphrase.c b/lib/libc/gen/readpassphrase.c
12index 01bff7d306c..f9d91263bc8 100644
13--- a/lib/libc/gen/readpassphrase.c
14+++ b/lib/libc/gen/readpassphrase.c
15@@ -198,16 +198,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-- 
352.54.0
36