- remove 6 out of the 10 flavors maze, only keep the ones that make sense (ie clamav, ldap, domainscale & largescale) - build pgsql & mysql drivers as subpackages, as $DEITY intended - @pkgpath & PFRAG.[flavor]-main tweaks from sthen@ (thanks!) - remove init_pwent_cache() patch until i can make some sense of it - remove painful strlcpy patches - add patches to fix pgsql support with PSQL > 9.1 from http://sourceforge.net/p/dspam/bug-tracker/112/ & http://sourceforge.net/p/dspam/bug-tracker/141 - add an rc script running dspam --daemon as _dspam - patch default dspam.conf to trust user _dspam (pointed out by jca@; thanks!) and to use port 2424 by default. Taken from debian. Discussed at length with todd@ (MAINTAINER), been running on amd64 with pgsql &| sqlite backend since a while, also tested on sqlite/ppc. Some tweaks might still be needed (a README ? Fix some weird crashers ?), but at least it's better than what we had for the past years.
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
$OpenBSD: patch-src_bnr_c,v 1.2 2013/09/14 17:12:11 landry Exp $
|
|
--- src/bnr.c.orig Wed Apr 11 20:48:33 2012
|
|
+++ src/bnr.c Sat Jan 5 15:35:35 2013
|
|
@@ -136,11 +136,11 @@ int bnr_instantiate(BNR_CTX *BTX) {
|
|
}
|
|
|
|
previous_bnr_probs[BNR_SIZE-1] = _bnr_round(node_list->value);
|
|
- sprintf(bnr_token, "bnr.%c|", BTX->identifier);
|
|
+ snprintf(bnr_token, sizeof (bnr_token), "bnr.%c|", BTX->identifier);
|
|
for(i=0;i<BNR_SIZE;i++) {
|
|
char x[6];
|
|
snprintf(x, 6, "%01.2f_", previous_bnr_probs[i]);
|
|
- strcat(bnr_token, x);
|
|
+ strlcat(bnr_token, x, sizeof (bnr_token));
|
|
}
|
|
|
|
#ifdef LIBBNR_VERBOSE_DEBUG
|
|
@@ -279,11 +279,11 @@ int bnr_finalize(BNR_CTX *BTX) {
|
|
previous_bnr_probs[BNR_SIZE-1] = _bnr_round(node_list->value);
|
|
previous_bnr_tokens[BNR_SIZE-1] = node_list;
|
|
|
|
- sprintf(bnr_token, "bnr.%c|", BTX->identifier);
|
|
+ snprintf(bnr_token, sizeof (bnr_token), "bnr.%c|", BTX->identifier);
|
|
for(i=0;i<BNR_SIZE;i++) {
|
|
char x[6];
|
|
snprintf(x, 6, "%01.2f_", previous_bnr_probs[i]);
|
|
- strcat(bnr_token, x);
|
|
+ strlcat(bnr_token, x, sizeof (bnr_token));
|
|
}
|
|
|
|
/* Identify interesting patterns */
|