ports/net/wackamole/files/patch-config_gram.y
Robert Clausecker 4d98b01b6f net/wackamole: Fix build on armv7
Jails may not have a bpf(4) device, but can still build with BPF.

 - fix the configure test for BPF detection
 - define LICENSE
 - fix two obvious bugs in the code

PR:		265561
Approved by:	maintainer timeout, >2 weeks
MFH:		2022Q3
2022-08-16 15:51:50 +01:00

11 lines
474 B
Text

--- config_gram.y.orig 2005-11-14 17:17:53 UTC
+++ config_gram.y
@@ -106,7 +106,7 @@ Setting : W_SPREAD W_EQUALS W_STRING
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;