diff options
| author | Michael Forney <mforney@mforney.org> | 2017-02-26 17:20:57 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2017-02-26 17:20:57 -0800 |
| commit | 6dfea0c1af69f11b41fba979746b5615a5ec477b (patch) | |
| tree | cb5413aa90131a8932b1c4f9bc63198c30ba5f40 /pkg/openbsd/patch/0015-Remove-getpass-definition.patch | |
| parent | ed60b46cc5d45a67a287b1426040f20aa22e5d00 (diff) | |
openbsd: Build doas
Use a simple sp_pwd comparison for now. Later, I might consider
implementing something similar to BSD auth for oasis.
Diffstat (limited to 'pkg/openbsd/patch/0015-Remove-getpass-definition.patch')
| -rw-r--r-- | pkg/openbsd/patch/0015-Remove-getpass-definition.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkg/openbsd/patch/0015-Remove-getpass-definition.patch b/pkg/openbsd/patch/0015-Remove-getpass-definition.patch new file mode 100644 index 00000000..aebfd49a --- /dev/null +++ b/pkg/openbsd/patch/0015-Remove-getpass-definition.patch @@ -0,0 +1,36 @@ +From 0cbb9dbd472c79ecbb53e8c977955d7782fbb18b Mon Sep 17 00:00:00 2001 +From: Michael Forney <mforney@mforney.org> +Date: Sun, 26 Feb 2017 17:12:56 -0800 +Subject: [PATCH] Remove getpass definition + +It is a legacy function and musl already provides an implementation. +--- + lib/libc/gen/readpassphrase.c | 12 ++---------- + 1 file changed, 2 insertions(+), 10 deletions(-) + +diff --git a/lib/libc/gen/readpassphrase.c b/lib/libc/gen/readpassphrase.c +index 55fe687ed32..1a327d35a6d 100644 +--- a/lib/libc/gen/readpassphrase.c ++++ b/lib/libc/gen/readpassphrase.c +@@ -179,16 +179,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; + } +-- +2.11.1 + |
