logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0013-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. It is a legacy function and musl already provides an implementation.
  6. ---
  7. lib/libc/gen/readpassphrase.c | 12 ++----------
  8. 1 file changed, 2 insertions(+), 10 deletions(-)
  9. diff --git a/lib/libc/gen/readpassphrase.c b/lib/libc/gen/readpassphrase.c
  10. index a50eaf003..57c6dc527 100644
  11. --- a/lib/libc/gen/readpassphrase.c
  12. +++ b/lib/libc/gen/readpassphrase.c
  13. @@ -183,16 +183,8 @@ restart:
  14. }
  15. DEF_WEAK(readpassphrase);
  16. -char *
  17. -getpass(const char *prompt)
  18. -{
  19. - static char buf[_PASSWORD_LEN + 1];
  20. -
  21. - return(readpassphrase(prompt, buf, sizeof(buf), RPP_ECHO_OFF));
  22. -}
  23. -
  24. -static void handler(int s)
  25. +static void
  26. +handler(int s)
  27. {
  28. -
  29. signo[s] = 1;
  30. }
  31. --
  32. 2.12.2