bogofilter -u broken: locking issue
    David Relson 
    relson at osagesoftware.com
       
    Thu Oct 10 19:18:19 CEST 2002
    
    
  
Gyepi,
Perhaps the thing to do is be a bit smarter when calling setup_lists().  We 
know that that '-u' will need write access as do '-s', '-n', etc.  As a 
guess the following patch will work:
RCS file: /cvsroot/bogofilter/bogofilter/main.c,v
retrieving revision 1.30
diff -u -r1.30 main.c
--- main.c	10 Oct 2002 15:14:06 -0000	1.30
+++ main.c	10 Oct 2002 17:15:32 -0000
@@ -109,7 +109,7 @@
      if ( directory == NULL )
  	directory = get_bogodir(dirnames);
-    setup_lists(directory, DB_WRITE);
+    setup_lists(directory, (update || register_type != REG_NONE) ? 
DB_WRITE : DB_READ);
      xfree(directory);
      if (register_type == REG_NONE)
David
    
    
More information about the bogofilter-dev
mailing list