Changeset 285
- Timestamp:
- May 11, 2010, 8:22:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r284 r285 1496 1496 ] 1497 1497 ) 1498 AC_CHECK_LIB(pcre, pcre_dfa_exec, [ 1499 AC_DEFINE([HAVE_PCRE_DFA_EXEC], 1, [Define if you have pcre_dfa_exec]) 1500 ], [ 1501 AC_MSG_WARN([pcre_dfa_exec not available]) 1502 ]) 1498 1503 fi 1499 1504 ] -
trunk/docs/Changelog
r284 r285 1 2.7.1: 2 * check for pcre_dfa_exec (not available in old versions 3 of libpcre, reported by Shinoj) 4 * patch to allow server to log client reports to prelude 5 (by J. Ventura) 6 1 7 2.7.0a (09-05-2010): 2 8 * fix /dev/kmem detection (reported by S. Clormann) -
trunk/src/sh_log_correlate.c
r272 r285 271 271 * array, otherwise number of matches is not returned. 272 272 */ 273 #if defined(HAVE_PCRE_DFA_EXEC) 273 274 int ovector[SH_MINIBUF]; 274 275 int wspace[SH_MINIBUF]; 276 #endif 277 278 #if defined(HAVE_PCRE_DFA_EXEC) 275 279 int val = pcre_dfa_exec(mkeep->rule, NULL, 276 280 sh_string_str(res), … … 280 284 ovector, SH_MINIBUF, 281 285 wspace, SH_MINIBUF); 286 #else 287 int val = pcre_exec(mkeep->rule, NULL, 288 sh_string_str(res), 289 (int)sh_string_len(res), 290 0, /* start at offset 0 in the subject */ 291 0, 292 NULL, 0); 293 val = (val >= 0) ? 1 : val; 294 #endif 295 282 296 if (val >= 0) 283 297 { -
trunk/src/sh_log_evalrule.c
r276 r285 1034 1034 mmm = replace_captures(record->message, rule->ovector, 1035 1035 rule->ovecnum); 1036 rule->ovecnum = 0; 1036 1037 msg = sh_util_safe_name_keepspace (sh_string_str(mmm)); 1037 1038 } … … 1133 1134 */ 1134 1135 static int process_counter(struct sh_ceval * counter, 1135 struct sh_geval * rule, struct sh_logrecord * record) 1136 struct sh_geval * rule, 1137 struct sh_logrecord * record) 1136 1138 { 1137 1139 int retval = -1; … … 1142 1144 counter->counted_str = replace_captures(record->message, rule->ovector, 1143 1145 rule->ovecnum); 1146 rule->ovecnum = 0; 1144 1147 counter->filename = sh_string_new_from_lchar(record->filename, 1145 1148 strlen(record->filename));
Note:
See TracChangeset
for help on using the changeset viewer.