View | Details | Raw Unified | Return to bug 265688
Collapse All | Expand All

(-)a/security/ossec-hids-local/files/patch-src_addagent_main.c (-18 lines)
Removed Link Here
1
--- src/addagent/main.c.orig	2020-02-14 19:46:22 UTC
2
+++ src/addagent/main.c
3
@@ -17,6 +17,7 @@ static void print_banner(void);
4
 static void manage_shutdown(int sig) __attribute__((noreturn));
5
 #endif
6
 
7
+int willchroot;
8
 
9
 #if defined(__MINGW32__)
10
 static int setenv(const char *name, const char *val, __attribute__((unused)) int overwrite)
11
@@ -104,7 +105,6 @@ int main(int argc, char **argv)
12
     int ret;
13
 #endif
14
 
15
-    extern int willchroot;
16
     willchroot = 1;
17
 
18
     /* Set the name */
(-)a/security/ossec-hids-local/files/patch-src_addagent_manage__agents.h (-8 lines)
Removed Link Here
1
--- src/addagent/manage_agents.h.orig	2020-02-14 19:46:22 UTC
2
+++ src/addagent/manage_agents.h
3
@@ -147,4 +147,4 @@ extern fpos_t fp_pos;
4
 #define GMF_UNKN_ERROR  ARGV0 ": Could not run GetModuleFileName which returned (%ld).\n"
5
 
6
 
7
-int willchroot;
8
+extern int willchroot;
(-)a/security/ossec-hids-local/files/patch-src_client-agent_agentd.c (-19 lines)
Removed Link Here
1
--- src/client-agent/agentd.c.orig	2020-02-14 19:46:22 UTC
2
+++ src/client-agent/agentd.c
3
@@ -15,6 +15,8 @@
4
 #include "os_dns/os_dns.h"
5
 #endif //WIN32
6
 
7
+struct imsgbuf server_ibuf;
8
+
9
 /* Start the agent daemon */
10
 void AgentdStart(const char *dir, int uid, int gid, const char *user, const char *group)
11
 {
12
@@ -39,7 +41,6 @@ void AgentdStart(const char *dir, int uid, int gid, co
13
     merror("starting imsg stuff");
14
     /* Prepare for os_dns */
15
     struct imsgbuf osdns_ibuf;
16
-    extern struct imsgbuf server_ibuf;
17
     //struct imsgbuf osdns_ibuf;
18
     int imsg_fds[2];
19
     merror("Creating socketpair()");
(-)a/security/ossec-hids-local/files/patch-src_client-agent_agentd.h (-11 lines)
Removed Link Here
1
--- src/client-agent/agentd.h.orig	2020-02-14 19:46:22 UTC
2
+++ src/client-agent/agentd.h
3
@@ -83,7 +83,7 @@ extern int run_foreground;
4
 extern keystore keys;
5
 extern agent *agt;
6
 #ifndef WIN32
7
-struct imsgbuf server_ibuf;
8
+extern struct imsgbuf server_ibuf;
9
 #endif //WIN32
10
 
11
 #endif /* __AGENTD_H */
(-)a/security/ossec-hids-local/files/patch-src_client-agent_config.c (-12 lines)
Removed Link Here
1
--- src/client-agent/config.c.orig	2020-02-14 19:46:22 UTC
2
+++ src/client-agent/config.c
3
@@ -17,8 +17,8 @@
4
 time_t available_server;
5
 int run_foreground;
6
 keystore keys;
7
-agent *agt;
8
 
9
+extern agent *agt;
10
 
11
 /* Read the config file (for the remote client) */
12
 int ClientConf(const char *cfgfile)
(-)a/security/ossec-hids-local/files/patch-src_os__net_os__net.c (-10 lines)
Removed Link Here
1
--- src/os_net/os_net.c.orig	2020-02-14 19:46:22 UTC
2
+++ src/os_net/os_net.c
3
@@ -14,6 +14,7 @@
4
 #include <errno.h>
5
 #include "shared.h"
6
 #include "os_net.h"
7
+
8
 agent *agt;
9
 
10
 /* Prototypes */

Return to bug 265688