diff options
author | John Marino <marino@FreeBSD.org> | 2014-06-11 14:25:01 +0000 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2014-06-11 14:25:01 +0000 |
commit | f2aad7685cec3bfa524ce8048f1c372dc6efed93 (patch) | |
tree | 0b3a17df0b8d047f5dbb7357fc22485b36e5aa57 /net/wackamole/files | |
parent | 8e07a09478b7a50637c5d9f19abe57f3a486810c (diff) |
Notes
Diffstat (limited to 'net/wackamole/files')
-rw-r--r-- | net/wackamole/files/patch-alarm.c | 20 | ||||
-rw-r--r-- | net/wackamole/files/patch-config_gram.y | 11 | ||||
-rw-r--r-- | net/wackamole/files/patch-configuration.c | 11 | ||||
-rw-r--r-- | net/wackamole/files/patch-defines.h | 28 | ||||
-rw-r--r-- | net/wackamole/files/patch-wackamole.c | 20 |
5 files changed, 90 insertions, 0 deletions
diff --git a/net/wackamole/files/patch-alarm.c b/net/wackamole/files/patch-alarm.c new file mode 100644 index 000000000000..7034c83282d1 --- /dev/null +++ b/net/wackamole/files/patch-alarm.c @@ -0,0 +1,20 @@ +--- alarm.c.orig 2014-05-06 16:24:44.652074671 -0700 ++++ alarm.c 2014-05-06 16:26:49.173062394 -0700 +@@ -93,7 +93,7 @@ + timestamp[length] = ' '; + #ifdef HAVE_SYSLOG_H + if(syslog_flag) +- syslog(LOG_NOTICE, timestamp); ++ syslog(LOG_NOTICE, "%s", timestamp); + else + #endif + fwrite(timestamp, length+1, sizeof(char), stdout); +@@ -105,7 +105,7 @@ + int len = strlen(message)+100; + s = malloc(len);/*estimation*/ + vsnprintf(s,len,message, ap); +- syslog(LOG_NOTICE, s); ++ syslog(LOG_NOTICE, "%s", s); + free(s); + } + else diff --git a/net/wackamole/files/patch-config_gram.y b/net/wackamole/files/patch-config_gram.y new file mode 100644 index 000000000000..d7ac0bce019c --- /dev/null +++ b/net/wackamole/files/patch-config_gram.y @@ -0,0 +1,11 @@ +--- config_gram.y.orig 2014-05-06 16:30:17.040722949 -0700 ++++ config_gram.y 2014-05-06 16:32:22.614815187 -0700 +@@ -106,7 +106,7 @@ + SPIT("Setting Group: %s\n", Spread_group); } + | W_LOG W_EQUALS W_STRING + | W_CONTROL W_EQUALS W_STRING +- { snprintf(control_socket, MAXPATHLEN, $3.string); } ++ { snprintf(control_socket, MAXPATHLEN, "%s", $3.string); } + | W_MATURE W_EQUALS W_TIMEINTERVAL + { Maturity_timeout.sec = $3.tv.tv_sec; + Maturity_timeout.usec = 0; diff --git a/net/wackamole/files/patch-configuration.c b/net/wackamole/files/patch-configuration.c new file mode 100644 index 000000000000..e58e93d66ff0 --- /dev/null +++ b/net/wackamole/files/patch-configuration.c @@ -0,0 +1,11 @@ +--- configuration.c.orig 2014-05-06 16:35:08.783140770 -0700 ++++ configuration.c 2014-05-06 16:35:58.734348535 -0700 +@@ -43,7 +43,7 @@ + char my_local_host_name[255]; + static const size_t my_local_host_name_len=255; + struct hostent *hent; +- int i, full; ++ int full; + Num_prefer = 0; + + if (File_name && File_name[0] && (NULL != (fp = fopen(File_name,"r"))) ) diff --git a/net/wackamole/files/patch-defines.h b/net/wackamole/files/patch-defines.h new file mode 100644 index 000000000000..84da09f03e28 --- /dev/null +++ b/net/wackamole/files/patch-defines.h @@ -0,0 +1,28 @@ +--- defines.h.orig 2014-05-06 16:38:13.055354417 -0700 ++++ defines.h 2014-05-06 16:42:19.536056294 -0700 +@@ -13,6 +13,9 @@ + #ifdef HAVE_STRINGS_H + #include <strings.h> + #endif ++#ifdef HAVE_STRING_H ++#include <string.h> ++#endif + #ifdef HAVE_ERRNO_H + #include <errno.h> + #endif +@@ -59,12 +62,12 @@ + #ifdef HAVE_NET_ROUTE_H + #include <net/route.h> + #endif +-#ifdef HAVE_PCAP_H +-#include <pcap.h> +-#endif + #ifdef HAVE_NET_BPF_H + #include <net/bpf.h> + #endif ++#ifdef HAVE_PCAP_H ++#include <pcap.h> ++#endif + #ifdef HAVE_NET_ETHERNET_H + #include <net/ethernet.h> + #endif diff --git a/net/wackamole/files/patch-wackamole.c b/net/wackamole/files/patch-wackamole.c new file mode 100644 index 000000000000..6fb6fee7c057 --- /dev/null +++ b/net/wackamole/files/patch-wackamole.c @@ -0,0 +1,20 @@ +--- wackamole.c.orig 2014-05-06 16:45:39.558907243 -0700 ++++ wackamole.c 2014-05-06 16:47:57.679302712 -0700 +@@ -911,7 +911,7 @@ + wack_alarm(PRINT, "%d %s", __LINE__, if_error()); + else { + char buffer[16]; +- snprintf(buffer, 16, inet_ntoa(iface.ipaddr)); ++ snprintf(buffer, 16, "%s", inet_ntoa(iface.ipaddr)); + wack_alarm(PRINT, " UP: %s:%s/%s", + iface.ifname,buffer,inet_ntoa(iface.netmask)); + } +@@ -954,7 +954,7 @@ + } + } else { + char buffer[16]; +- snprintf(buffer, 16, inet_ntoa(idown.ipaddr)); ++ snprintf(buffer, 16, "%s", inet_ntoa(idown.ipaddr)); + wack_alarm(PRINT, "DOWN: %s:%s/%s", + idown.ifname,buffer,inet_ntoa(idown.netmask)); + } |