Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
101 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
TIMESTAMP = 1646618189 | ||
SHA256 (greenbone-openvas-scanner-v21.4.4_GH0.tar.gz) = 94af7113c8f16754eebf0a7e26c231586e3c2b70342d818d20cf24be4f40c578 | ||
SIZE (greenbone-openvas-scanner-v21.4.4_GH0.tar.gz) = 460601 | ||
TIMESTAMP = 1659314127 | ||
SHA256 (greenbone-openvas-scanner-v22.4.0_GH0.tar.gz) = 232a64206f2ce17633ea16951b91d5d8743b174afd521f6318961353aadf8268 | ||
SIZE (greenbone-openvas-scanner-v22.4.0_GH0.tar.gz) = 478488 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- src/main.c 2022-07-18 04:07:38.000000000 -0500 | ||
+++ src/main.c 2022-07-31 21:37:38.265241000 -0500 | ||
@@ -35,7 +35,13 @@ | ||
* @return EXIT_SUCCESS on success, EXIT_FAILURE on failure. | ||
*/ | ||
int | ||
+#if defined(__FreeBSD__) | ||
+main (int argc, char **argv) | ||
+{ | ||
+ return openvas (argc, argv); | ||
+#else | ||
main (int argc, char **argv, char *env[]) | ||
{ | ||
return openvas (argc, argv, env); | ||
+#endif | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- src/openvas.c 2022-07-31 21:26:36.888737000 -0500 | ||
+++ src/openvas.c 2022-07-31 21:28:05.607778000 -0500 | ||
@@ -44,7 +44,7 @@ | ||
#include "sighand.h" /* for openvas_signal */ | ||
#include "utils.h" /* for store_file */ | ||
|
||
-#include <bsd/unistd.h> /* for proctitle_init */ | ||
+#include <unistd.h> /* for proctitle_init */ | ||
#include <errno.h> /* for errno() */ | ||
#include <fcntl.h> /* for open() */ | ||
#include <gcrypt.h> /* for gcry_control */ | ||
@@ -468,11 +468,19 @@ | ||
* @param argv Argument vector. | ||
*/ | ||
int | ||
+#if defined(__FreeBSD__) | ||
+openvas (int argc, char *argv[]) | ||
+ | ||
+{ | ||
+ int err; | ||
+#else | ||
openvas (int argc, char *argv[], char *env[]) | ||
+ | ||
{ | ||
int err; | ||
|
||
setproctitle_init (argc, argv, env); | ||
+#endif | ||
gcrypt_init (); | ||
|
||
static gboolean display_version = FALSE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- src/openvas.h 2022-07-31 21:28:34.160685000 -0500 | ||
+++ src/openvas.h 2022-07-31 21:29:05.831561000 -0500 | ||
@@ -26,6 +26,10 @@ | ||
#define _OPENVAS_H | ||
|
||
int | ||
+#if defined(__FreeBSD__) | ||
+openvas (int, char **); | ||
+#else | ||
openvas (int, char **, char **); | ||
+#endif | ||
|
||
#endif /* not _OPENVAS_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,14 @@ | ||
--- src/pluginscheduler.c 2020-08-11 07:00:25.000000000 -0500 | ||
+++ src/pluginscheduler.c 2021-01-04 18:10:12.943469000 -0500 | ||
@@ -33,7 +33,7 @@ | ||
--- src/pluginscheduler.c 2022-07-18 04:07:38.000000000 -0500 | ||
+++ src/pluginscheduler.c 2022-07-31 19:38:07.076865000 -0500 | ||
@@ -33,7 +33,11 @@ | ||
#include <glib.h> | ||
#include <gvm/base/prefs.h> /* for prefs_get() */ | ||
#include <gvm/util/nvticache.h> /* for nvticache_t */ | ||
-#include <malloc.h> | ||
+#include <stdlib.h> | ||
+#if !defined(__FreeBSD__) | ||
#include <malloc.h> | ||
+#endif | ||
+#include <stdlib.h> | ||
#include <string.h> /* for strcmp() */ | ||
|
||
#undef G_LOG_DOMAIN | ||
@@ -325,7 +325,7 @@ | ||
plugins_scheduler_free (ret); | ||
return NULL; | ||
} | ||
- malloc_trim (0); | ||
+// malloc_trim (0); | ||
return ret; | ||
} | ||
|
||
@@ -427,7 +427,7 @@ | ||
element = element->next; | ||
} | ||
} | ||
- malloc_trim (0); | ||
+// malloc_trim (0); | ||
} | ||
|
||
struct scheduler_plugin * |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters