logo

oasis

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

0001-Use-plain-vsyslog-for-OPENSSL_showfatal.patch (873B)


  1. From a16c45e3c7b271fb74a83d84e83189858b9b88bb Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Wed, 24 Apr 2019 00:07:34 -0700
  4. Subject: [PATCH] Use plain vsyslog for OPENSSL_showfatal
  5. The compat version just ignores the second argument anyway, and
  6. patching it out allows us to continue to ignore the compat functions.
  7. ---
  8. crypto/cryptlib.c | 3 +--
  9. 1 file changed, 1 insertion(+), 2 deletions(-)
  10. diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c
  11. index 38d31e7ac..d6eface9b 100644
  12. --- a/crypto/cryptlib.c
  13. +++ b/crypto/cryptlib.c
  14. @@ -345,11 +345,10 @@ OPENSSL_cpuid_setup(void)
  15. static void
  16. OPENSSL_showfatal(const char *fmta, ...)
  17. {
  18. - struct syslog_data sdata = SYSLOG_DATA_INIT;
  19. va_list ap;
  20. va_start(ap, fmta);
  21. - vsyslog_r(LOG_INFO|LOG_LOCAL2, &sdata, fmta, ap);
  22. + vsyslog(LOG_INFO|LOG_LOCAL2, fmta, ap);
  23. va_end(ap);
  24. }
  25. --
  26. 2.21.0