diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2019-10-21 16:32:35 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2019-10-21 20:01:23 +0000 |
commit | 70c3390d501495201a01fac9f671f389afbc78aa (patch) | |
tree | be4b96103d5bf1a53f36a3295c1e1b9ccbf175cb /community/openvas/execinfo-musl-fix.patch | |
parent | 359d30ae8a1c64704634045f8bc27ef4b348a143 (diff) | |
download | aports-70c3390d501495201a01fac9f671f389afbc78aa.tar.bz2 aports-70c3390d501495201a01fac9f671f389afbc78aa.tar.xz |
community/openvas: renamed from openvas-scanner
Diffstat (limited to 'community/openvas/execinfo-musl-fix.patch')
-rw-r--r-- | community/openvas/execinfo-musl-fix.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/community/openvas/execinfo-musl-fix.patch b/community/openvas/execinfo-musl-fix.patch new file mode 100644 index 0000000000..a992f60a16 --- /dev/null +++ b/community/openvas/execinfo-musl-fix.patch @@ -0,0 +1,40 @@ +diff --git a/src/sighand.c b/src/sighand.c +index c82e7e3..4d7001e 100644 +--- a/src/sighand.c ++++ b/src/sighand.c +@@ -22,8 +22,9 @@ + * @file sighand.c + * @brief Provides signal handling functions. + */ +- ++#ifdef HAVE_EXECINFO_H + #include <execinfo.h> /* for backtrace() */ ++#endif + #include <glib.h> /* for G_LOG_DOMAIN, for g_critical() */ + #include <signal.h> /* for kill() */ + #include <sys/wait.h> /* for waitpid() */ +@@ -106,7 +107,7 @@ sighand_chld (pid_t pid) + + waitpid (pid, &status, WNOHANG); + } +- ++#ifdef HAVE_EXECINFO_H + static void + print_trace () + { +@@ -125,12 +126,15 @@ print_trace () + + g_free (strings); + } ++#endif + + void + sighand_segv (int given_signal) + { + signal (SIGSEGV, _exit); ++#ifdef HAVE_EXECINFO_H + print_trace (); ++#endif + make_em_die (SIGTERM); + /* Raise signal again, to exit with the correct return value, + * and to enable core dumping. */ |