[Aide] [patch] restore old behavior
Marc Haber
mh+aide at zugschlus.de
Sat Dec 17 14:40:30 EET 2005
Hi,
this patch seems to restore the old behavior. Please consider applying
it to CVS.
Greetings
Marc
diff -urNad aide~/src/gen_list.c aide/src/gen_list.c
--- aide~/src/gen_list.c 2005-12-12 12:58:15.000000000 +0000
+++ aide/src/gen_list.c 2005-12-17 12:16:42.000000000 +0000
@@ -638,9 +638,9 @@
int check_list_for_match(list* rxrlist,char* text,int* attr)
{
- list* r=rxrlist;
+ list* r=NULL;
int retval=1;
- for(;r;r=r->prev){
+ for(r=rxrlist;r;r=r->next){
if((retval=regexec((regex_t*)((rx_rule*)r->data)->crx,text,0,0,0))==0){
*attr=((rx_rule*)r->data)->attr;
error(231,"\"%s\" matches rule from line #%ld: %s\n",text,((rx_rule*)r->data)->conf_lineno,((rx_rule*)r->data)->rx);
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835
More information about the Aide
mailing list